Lines Matching refs:mnt
37 #define umount2(mnt, flags) unmount(mnt, ((flags) == 2) ? MNT_FORCE : 0) argument
41 #define mtab_needs_update(mnt) 0 argument
43 static int mtab_needs_update(const char *mnt) in mtab_needs_update() argument
49 if (strncmp(mnt, _PATH_MOUNTED, strlen(mnt)) == 0 && in mtab_needs_update()
50 _PATH_MOUNTED[strlen(mnt)] == '/') in mtab_needs_update()
89 const char *mnt, const char *type, const char *opts) in add_mount() argument
121 "-f", "-t", type, "-o", opts, fsname, mnt, NULL, &env); in add_mount()
140 const char *mnt, const char *type, const char *opts) in fuse_mnt_add_mount() argument
142 if (!mtab_needs_update(mnt)) in fuse_mnt_add_mount()
145 return add_mount(progname, fsname, mnt, type, opts); in fuse_mnt_add_mount()
220 static int remove_mount(const char *progname, const char *mnt) in remove_mount() argument
252 "--fake", mnt, NULL, &env); in remove_mount()
269 int fuse_mnt_remove_mount(const char *progname, const char *mnt) in fuse_mnt_remove_mount() argument
271 if (!mtab_needs_update(mnt)) in fuse_mnt_remove_mount()
274 return remove_mount(progname, mnt); in fuse_mnt_remove_mount()