Home
last modified time | relevance | path

Searched refs:mntpt (Results 1 – 15 of 15) sorted by relevance

/netbsd-src/sbin/umount/
H A Dumount.c194 const char *mntpt; in umountfs() local
200 mntpt = name; in umountfs()
220 mntpt = name; in umountfs()
224 if ((mntpt = getmntname(name, MNTON, &type)) == NULL) { in umountfs()
230 if ((name = getmntname(mntpt, MNTFROM, &type)) == NULL) { in umountfs()
231 warnx("%s: not currently mounted", mntpt); in umountfs()
236 if ((name = getmntname(mntpt, MNTFROM, &type)) == NULL) { in umountfs()
237 name = mntpt; in umountfs()
238 if ((mntpt = getmntname(name, MNTON, &type)) == NULL) { in umountfs()
253 proto = getmntproto(mntpt); in umountfs()
[all …]
/netbsd-src/external/cddl/osnet/dist/lib/libzfs/common/
H A Dlibzfs_mount.c384 char *mntpt = NULL; in zfs_unmount() local
396 mntpt = zfs_strdup(hdl, entry.mnt_mountp); in zfs_unmount()
398 mntpt = zfs_strdup(hdl, mountpoint); in zfs_unmount()
403 if (zfs_unshare_proto(zhp, mntpt, share_all_proto) != 0) in zfs_unmount()
406 if (unmount_one(hdl, mntpt, flags) != 0) { in zfs_unmount()
407 free(mntpt); in zfs_unmount()
412 free(mntpt); in zfs_unmount()
866 char *mntpt; in unshare_one() local
872 mntpt = zfs_strdup(hdl, mountpoint); in unshare_one()
876 free(mntpt); /* don't need the copy anymore */ in unshare_one()
[all …]
H A Dlibzfs_diff.c679 get_mountpoint(differ_info_t *di, char *dsnm, char **mntpt) in get_mountpoint() argument
683 mounted = is_mounted(di->zhp->zfs_hdl, dsnm, mntpt); in get_mountpoint()
692 if (**mntpt == '/' && *(*mntpt + 1) == '\0') in get_mountpoint()
693 **mntpt = '\0'; in get_mountpoint()
719 char *mntpt; in get_mountpoints() local
723 err = get_mountpoint(di, di->fromsnap, &mntpt); in get_mountpoints()
727 frommntpt = mntpt; in get_mountpoints()
/netbsd-src/external/bsd/am-utils/dist/amd/
H A Damfs_host.c98 make_mntpt(char *mntpt, size_t l, const exports ex, const char *mf_mount) in make_mntpt() argument
102 xstrlcpy(mntpt, mf_mount, l); in make_mntpt()
104 xsnprintf(mntpt, l, "%s%s", mf_mount, ex->ex_dir); in make_mntpt()
110 xsnprintf(mntpt, l, "%s/%c%%", mf_mount, ex->ex_dir[0]); in make_mntpt()
112 xsnprintf(mntpt, l, "%s/%s", mf_mount, ex->ex_dir); in make_mntpt()
320 char mntpt[MAXPATHLEN]; in amfs_host_mount() local
426 make_mntpt(mntpt, sizeof(mntpt), ex, mf->mf_mount); in amfs_host_mount()
427 if (already_mounted(mlist, mntpt)) in amfs_host_mount()
490 make_mntpt(mntpt, sizeof(mntpt), ex, mf->mf_mount); in amfs_host_mount()
491 if (do_mount(&fp[j], mntpt, fs_name, mf) == 0) in amfs_host_mount()
H A Dmapc.c643 mapc_create(char *map, char *opt, const char *type, const char *mntpt) in mapc_create() argument
745 m->cfm = find_cf_map(mntpt); in mapc_create()
808 mapc_find(char *map, char *opt, const char *maptype, const char *mntpt) in mapc_find() argument
822 m = mapc_create(map, opt, maptype, mntpt); in mapc_find()
/netbsd-src/sbin/fsck/
H A Dfsck.c199 const char *spec, *spec2, *mntpt, *type, *cp; in main() local
202 spec = mntpt = *argv; in main()
267 checkfs(const char *vfst, const char *spec, const char *mntpt, void *auxarg, in checkfs() argument
310 (void)printf("start %s %swait", mntpt, in checkfs()
334 if ((statvfs(mntpt, &sfs) == 0) && in checkfs()
335 (strcmp(mntpt, sfs.f_mntonname) == 0) && in checkfs()
339 spec, mntpt); in checkfs()
H A Dpreen.c336 addpart(const char *type, const char *dev, const char *mntpt, void *auxarg) in addpart() argument
349 p->p_mntpt = estrdup(mntpt); in addpart()
/netbsd-src/tests/fs/tmpfs/
H A Dt_mount.sh114 atf_test_case mntpt
139 atf_add_test_case mntpt
H A Dt_rmdir.sh33 atf_test_case mntpt
195 atf_add_test_case mntpt
H A Dh_funcs.subr42 Mount_Point=$(pwd)/mntpt
H A Dt_vnd.sh72 umount mntpt/mnt 2>/dev/null 1>&2
/netbsd-src/usr.sbin/quotacheck/
H A Dquotacheck.c316 chkquota(const char *type, const char *fsname, const char *mntpt, void *v, in chkquota() argument
354 (void)printf(" quotas for %s (%s)\n", fsname, mntpt); in chkquota()
467 errs += update(mntpt, qnp->usrqfname, USRQUOTA); in chkquota()
469 errs += update(mntpt, qnp->grpqfname, GRPQUOTA); in chkquota()
/netbsd-src/sbin/fsck_lfs/
H A Dmain.c205 checkfilesys(const char *filesys, char *mntpt, long auxdata, int child) in checkfilesys() argument
/netbsd-src/sbin/fsck_ext2fs/
H A Dmain.c233 checkfilesys(const char *filesys, char *mntpt, long auxdata, int child) in checkfilesys() argument
/netbsd-src/external/bsd/am-utils/dist/
H A DChangeLog1439 (mapc_find): takes 4rd arg (mntpt) and passes it to calls to
1441 (root_newmap): pass NULL as 4th arg (mntpt).