Lines Matching defs:mnt
130 static int add_mount(const char *source, const char *mnt, const char *type,
133 return fuse_mnt_add_mount(progname, source, mnt, type, opts);
163 static int add_mount(const char *source, const char *mnt, const char *type,
167 (void) mnt;
304 static int do_mount(const char *mnt, char **typep, mode_t rootmode,
396 res = mount(source, mnt, type, flags, optbuf);
400 res = mount(source, mnt, type, flags, optbuf);
439 const char *mnt = *mntp;
440 const char *origmnt = mnt;
442 res = stat(mnt, stbuf);
445 progname, mnt, strerror(errno));
460 res = chdir(mnt);
466 mnt = *mntp = ".";
467 res = lstat(mnt, stbuf);
480 res = access(mnt, W_OK);
488 *mountpoint_fd = open(mnt, O_WRONLY);
490 fprintf(stderr, "%s: failed to open %s: %s\n", progname, mnt,
497 progname, mnt, strerror(errno));
502 progname, mnt);
511 progname, mnt);
560 static int mount_fuse(const char *mnt, const char *opts)
569 const char *real_mnt = mnt;
610 res = add_mount(source, mnt, type, mnt_opts);
612 umount2(mnt, 2); /* lazy umount */
637 char *mnt;
640 mnt = fuse_mnt_resolve_path(progname, origmnt);
641 if (mnt == NULL)
652 res = fuse_mnt_umount(progname, mnt, lazy);
654 res = umount2(mnt, lazy ? 2 : 0);
657 mnt, strerror(errno));
664 res = mount_fuse(mnt, opts);
667 free(mnt);