aboutsummaryrefslogtreecommitdiffstats
path: root/example/fuse_lo-plus.c
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2016-10-02 10:26:40 -0700
committerNikolaus Rath <Nikolaus@rath.org>2016-10-02 10:51:34 -0700
commit50f5255a44870863e4a9b6bcb7a62b5319fefd62 (patch)
treef2612633cfae824810dd8c0c86d7d0beb5cfcdf1 /example/fuse_lo-plus.c
parent1ac9551d9a0a7abdce3dd31dad808c89e0467823 (diff)
downloadlibfuse-50f5255a44870863e4a9b6bcb7a62b5319fefd62.tar.gz
Introduce separate mount/umount functions for low-level API.
Diffstat (limited to 'example/fuse_lo-plus.c')
-rw-r--r--example/fuse_lo-plus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/fuse_lo-plus.c b/example/fuse_lo-plus.c
index adbbbee..30ad21e 100644
--- a/example/fuse_lo-plus.c
+++ b/example/fuse_lo-plus.c
@@ -95,7 +95,7 @@ static struct lo_inode *lo_inode(fuse_req_t req, fuse_ino_t ino)
if (ino == FUSE_ROOT_ID)
return &lo_data(req)->root;
else
- return (struct lo_inode *) (uintptr_t) ino;
+ return (struct lo_inode *) (uintptr_t) ino;
}
static int lo_fd(fuse_req_t req, fuse_ino_t ino)
@@ -469,7 +469,7 @@ int main(int argc, char *argv[])
err(1, "open(\"/\", O_PATH)");
if (fuse_parse_cmdline(&args, &mountpoint, NULL, NULL) != -1 &&
- (ch = fuse_mount(mountpoint, &args)) != NULL) {
+ (ch = fuse_session_mount(mountpoint, &args)) != NULL) {
struct fuse_session *se;
se = fuse_lowlevel_new(&args, &lo_oper, sizeof(lo_oper), &lo);
if (se != NULL) {
@@ -481,7 +481,7 @@ int main(int argc, char *argv[])
}
fuse_session_destroy(se);
}
- fuse_unmount(mountpoint, ch);
+ fuse_session_unmount(mountpoint, ch);
free(mountpoint);
}
fuse_opt_free_args(&args);