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