942 |
fd = fuse_mount(mountpoint,&margs); |
fd = fuse_mount(mountpoint,&margs); |
943 |
fuse_opt_free_args(&margs); |
fuse_opt_free_args(&margs); |
944 |
if(fd < 0) |
if(fd < 0) |
945 |
croak("could not mount fuse filesystem!"); |
croak("could not mount fuse filesystem!\n"); |
946 |
if (debug && |
if (debug) { |
947 |
(fuse_opt_add_arg(&fargs, "") == -1 || |
if ( fuse_opt_add_arg(&fargs, "") == -1 || |
948 |
fuse_opt_add_arg(&fargs, "-d") == -1)) { |
fuse_opt_add_arg(&fargs, "-d") == -1) { |
949 |
fuse_opt_free_args(&fargs); |
fuse_opt_free_args(&fargs); |
950 |
croak("out of memory\n"); |
croak("out of memory\n"); |
951 |
|
} |
952 |
|
} else { |
953 |
|
if (fuse_opt_add_arg(&fargs, "") == -1) |
954 |
|
croak("out of memory\n"); |
955 |
} |
} |
956 |
|
|
957 |
if(threaded) { |
if(threaded) { |
958 |
fuse_loop_mt(fuse_new(fd,&fargs,&fops,sizeof(fops)/sizeof(void*))); |
fuse_loop_mt(fuse_new(fd,&fargs,&fops,sizeof(fops)/sizeof(void*))); |
959 |
} else |
} else |