Lines Matching defs:mnt
163 static int add_mount(const char *source, const char *mnt, const char *type,
166 return fuse_mnt_add_mount(progname, source, mnt, type, opts);
196 static int add_mount(const char *source, const char *mnt, const char *type,
200 (void) mnt;
337 static int do_mount(const char *mnt, char **typep, mode_t rootmode,
429 res = mount(source, mnt, type, flags, optbuf);
433 res = mount(source, mnt, type, flags, optbuf);
472 const char *mnt = *mntp;
473 const char *origmnt = mnt;
475 res = stat(mnt, stbuf);
478 progname, mnt, strerror(errno));
493 res = chdir(mnt);
499 mnt = *mntp = ".";
500 res = lstat(mnt, stbuf);
513 res = access(mnt, W_OK);
521 *mountpoint_fd = open(mnt, O_WRONLY);
523 fprintf(stderr, "%s: failed to open %s: %s\n", progname, mnt,
530 progname, mnt, strerror(errno));
535 progname, mnt);
544 progname, mnt);
593 static int mount_fuse(const char *mnt, const char *opts)
602 const char *real_mnt = mnt;
644 res = add_mount(source, mnt, type, mnt_opts);
646 umount2(mnt, 2); /* lazy umount */
671 char *mnt;
674 mnt = fuse_mnt_resolve_path(progname, origmnt);
675 if (mnt == NULL)
686 res = fuse_mnt_umount(progname, mnt, lazy);
688 res = umount2(mnt, lazy ? 2 : 0);
691 mnt, strerror(errno));
698 res = mount_fuse(mnt, opts);
701 free(mnt);