/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_copies/ |
H A D | zfs_copies_006_pos.ksh | 50 if ismounted $mntp ufs ; then 51 log_must umount $mntp 58 if [[ -d $mntp ]]; then 59 rm -rf $mntp 66 mntp=$UFS_MNTPOINT 69 if [[ ! -d $mntp ]]; then 70 mkdir -p $mntp 74 do_vol_test ufs $val $mntp
|
H A D | zfs_copies.kshlib | 95 typeset mntp=$3 105 log_must mount -F ufs -o rw $vol_b_path $mntp 116 log_must mkfile $FILESIZE $mntp/$FILE 134 umount $mntp
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_share/ |
H A D | zfs_share_006_pos.ksh | 59 for fs in $mntp $TESTDIR1 $TESTDIR2 75 typeset mntp=$1 78 not_shared $mntp || \ 79 log_fail "Mountpoint: $mntp is already shared." 83 not_shared $mntp || \ 84 log_fail "File system $mntp is shared (set sharenfs)." 101 typeset mntp=$(get_prop mountpoint $TESTPOOL/$TESTCTR) 102 test_ctr_share $mntp $TESTPOOL/$TESTCTR
|
H A D | zfs_share_004_pos.ksh | 67 typeset mntp=$1 70 not_shared $mntp || \ 74 is_shared $mntp || \ 77 log_must ls -l $mntp/$SNAPROOT/snapshot 84 is_shared $mntp || \ 87 log_must ls -l $mntp/$SNAPROOT/snapshot
|
H A D | zfs_share_001_pos.ksh | 85 typeset mntp=$1 88 not_shared $mntp || \ 92 is_shared $mntp || \ 99 is_shared $mntp && \ 103 is_shared $mntp || \
|
H A D | zfs_share_003_pos.ksh | 75 typeset mntp=$1 78 not_shared $mntp || \ 83 not_shared $mntp || \ 93 not_shared $mntp || \
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quotacheck/ |
H A D | quotacheck.c | 119 struct mnttab mntp; in main() local 234 while (getmntent(mtab, &mntp) == 0) { in main() 235 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) == 0 && in main() 236 !hasmntopt(&mntp, MNTOPT_RO) && in main() 237 (oneof(mntp.mnt_special, listp, listcnt) || in main() 238 oneof(mntp.mnt_mountp, listp, listcnt))) { in main() 240 "%s/%s", mntp.mnt_mountp, QFNAME); in main() 242 chkquota(mntp.mnt_special, in main() 243 mntp.mnt_mountp, quotafile); in main() 272 struct mnttab mntp, mpref; in preen() local [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quotaon/ |
H A D | quotaon.c | 88 struct mnttab mntp; in main() local 209 while ((status = getmntent(mtab, &mntp)) == 0) in main() 223 while ((status = getmntent(mtab, &mntp)) == 0) { in main() 224 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) == 0 && in main() 225 !hasmntopt(&mntp, MNTOPT_RO) && in main() 226 (oneof(mntp.mnt_special, listp, listcnt) || in main() 227 oneof(mntp.mnt_mountp, listp, listcnt))) { in main() 228 errs += quotaonoff(&mntp, offmode); in main() 246 quotaonoff(struct mnttab *mntp, int offmode) in quotaonoff() argument 250 if (quotactl(Q_QUOTAOFF, mntp->mnt_mountp, (uid_t)0, NULL) < 0) in quotaonoff() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unshare/ |
H A D | zfs_unshare_001_pos.ksh | 87 typeset mntp=$1 94 not_shared $mntp || 95 log_must unshare -F nfs $mntp 97 is_shared $mntp || \ 102 is_shared $mntp || log_must zfs share $filesystem 108 not_shared $mntp || log_fail "'zfs unshare <filesystem>' fails" 112 log_must zfs unshare $mntp 113 not_shared $mntp || log_fail "'zfs unshare <mountpoint>' fails" 117 log_mustnot zfs unshare $mntp
|
H A D | zfs_unshare_002_pos.ksh | 85 typeset mntp=$1 89 not_shared $mntp || \ 93 log_must share -F nfs $mntp 94 is_shared $mntp || \ 100 is_shared $mntp || \ 107 log_mustnot zfs unshare $mntp 108 is_shared $mntp || \
|
H A D | zfs_unshare_003_pos.ksh | 68 typeset mntp=$1 75 is_shared $mntp || unshare -F nfs $mntp 81 not_shared $mntp || \ 84 not_shared $mntp@snapshot || \
|
/illumos-gate/usr/src/cmd/fs.d/nfs/umount/ |
H A D | umount.c | 163 struct extmnttab *mntp; in nfs_unmount() local 167 mntp = mnttab_find(pathname); in nfs_unmount() 168 if (mntp) { in nfs_unmount() 169 pathname = mntp->mnt_mountp; in nfs_unmount() 172 if (mntp) in nfs_unmount() 173 is_v4 = is_v4_mount(mntp); in nfs_unmount() 193 if (mntp) { in nfs_unmount() 194 inform_server(mntp->mnt_special, mntp->mnt_mntopts, quick); in nfs_unmount() 359 is_v4_mount(struct extmnttab *mntp) in is_v4_mount() argument 365 if (mntp == NULL) in is_v4_mount() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/ |
H A D | repquota.c | 99 struct mnttab mntp; in main() local 207 while (getmntent(mtab, &mntp) == 0) { in main() 208 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) == 0 && in main() 209 !hasmntopt(&mntp, MNTOPT_RO) && in main() 210 (oneof(mntp.mnt_special, listp, listcnt) || in main() 211 oneof(mntp.mnt_mountp, listp, listcnt))) { in main() 213 mntp.mnt_mountp, QFNAME); in main() 214 errs += repquota(mntp.mnt_special, in main() 215 mntp.mnt_mountp, quotafile); in main() 438 struct mnttab mntp; in quotactl() local [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quot/ |
H A D | quot.c | 191 struct mnttab mntp; in quotall() local 201 while (getmntent(fstab, &mntp) == 0) { in quotall() 202 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0) in quotall() 205 if ((cp = getfullrawname(mntp.mnt_special)) == NULL) in quotall() 211 if (check(cp, mntp.mnt_mountp) == 0) { in quotall() 246 struct mnttab mntp; in check() local 253 while (getmntent(fstab, &mntp) == 0) { in check() 254 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0) in check() 256 if (strcmp(mntp.mnt_special, file) == 0) { in check() 257 fsdir = mntp.mnt_mountp; in check() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_014_neg.ksh | 56 log_must umount $mntp 76 typeset mntp=/mnt 77 typeset TMP_FILE=$mntp/tmpfile.$$ 82 log_must mount /dev/zvol/dsk/$vol_name $mntp
|
/illumos-gate/usr/src/cmd/stat/fsstat/ |
H A D | fsstat.c | 621 struct mnt *mntp; in set_mntpt() local 646 if ((mntp = malloc(sizeof (*mntp))) == NULL) { in set_mntpt() 650 mntp->m_mntpt = strdup(mnttab.mnt_mountp); in set_mntpt() 651 mntp->m_next = mnt_list; in set_mntpt() 652 mnt_list = mntp; in set_mntpt() 666 for (mntp = mnt_list; mntp; mntp = mntp->m_next) { in set_mntpt() 667 if (strncmp(path, mntp->m_mntpt, strlen(mntp->m_mntpt)) == 0) { in set_mntpt() 668 if (mntp->m_fsid == 0) { in set_mntpt() 669 if (statvfs64(mntp->m_mntpt, &statvfsbuf)) { in set_mntpt() 673 mntp->m_fsid = statvfsbuf.f_fsid; in set_mntpt() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 438 warn(struct mnttab *mntp, struct dqblk *dqp) in warn() argument 446 printf("Block limit reached on %s\n", mntp->mnt_mountp); in warn() 451 mntp->mnt_mountp, in warn() 458 mntp->mnt_mountp, in warn() 464 mntp->mnt_mountp, in warn() 470 printf("File count limit reached on %s\n", mntp->mnt_mountp); in warn() 475 mntp->mnt_mountp, in warn() 485 mntp->mnt_mountp, in warn() 492 mntp->mnt_mountp, in warn() 517 prquota(struct mnttab *mntp, struct dqblk *dqp) in prquota() argument [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/projectquota/ |
H A D | projectquota_common.kshlib | 40 typeset mntp=$(get_prop mountpoint $QFS) 46 log_must chmod 0755 $mntp 62 typeset mntp=$(get_prop mountpoint $fs) 63 log_must chmod 0777 $mntp
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/userquota/ |
H A D | userquota_common.kshlib | 77 typeset mntp=$(get_prop mountpoint $fs) 78 log_must chmod 0777 $mntp 87 typeset mntp=$(get_prop mountpoint $fs) 88 log_must chmod 0755 $mntp
|
/illumos-gate/usr/src/cmd/fs.d/ufs/edquota/ |
H A D | edquota.c | 658 struct mnttab mntp; in setupfs() local 669 while (getmntent(mtab, &mntp) == 0) { in setupfs() 670 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0) in setupfs() 672 if (stat64(mntp.mnt_special, &statb) < 0) in setupfs() 678 mntp.mnt_mountp, QFNAME); in setupfs() 687 fsqp->fsq_fs = strdup(mntp.mnt_mountp); in setupfs() 688 fsqp->fsq_dev = strdup(mntp.mnt_special); in setupfs() 819 struct mnttab mntp; in quotactl() local 843 while ((status = getmntent(fstab, &mntp)) == 0) { in quotactl() 852 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0 || in quotactl() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | automount.c | 94 struct extmnttab mnt, *mntp; in main() local 236 if (mntp = find_mount(dir->dir_name, 1)) { in main() 241 if (strcmp(mntp->mnt_fstype, MNTTYPE_AUTOFS) != 0) { in main() 243 mntp->mnt_mountp); in main() 253 if (strcmp(mntp->mnt_special, dir->dir_map) == 0 && in main() 255 mntp->mnt_mntopts) == 0) { in main() 263 omntp = (struct mnttab *)mntp; in main() 265 mntp = find_mount(dir->dir_name, 0); in main() 266 omntp = (struct mnttab *)mntp; in main()
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/umount/ |
H A D | umount.c | 140 struct extmnttab *mntp; in smbfs_unmount() local 143 mntp = mnttab_find(pathname); in smbfs_unmount() 144 if (mntp) { in smbfs_unmount() 145 pathname = mntp->mnt_mountp; in smbfs_unmount()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/ |
H A D | canmount_003_pos.ksh | 65 mntp=$(get_prop mountpoint $ds) 67 if [[ -d $mntp ]]; then 68 log_must rm -fr $mntp
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 234 struct mnttab *mntp; in check_and_unmount_vold() local 291 mntp = (struct mnttab *)malloc(sizeof (struct mnttab)); in check_and_unmount_vold() 292 if (mntp == NULL) { in check_and_unmount_vold() 298 while (getmntent(fp, mntp) == 0) { in check_and_unmount_vold() 305 DPRINTF1(" %s \n", mntp->mnt_special); in check_and_unmount_vold() 306 if (strstr(mntp->mnt_special, tmp_path_name) != in check_and_unmount_vold() 307 mntp->mnt_special) { in check_and_unmount_vold() 311 DPRINTF1("Found!! %s\n", mntp->mnt_special); in check_and_unmount_vold() 327 free(mntp); in check_and_unmount_vold() 346 struct mnttab *mntp; in check_and_unmount_scsi() local [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/lockfs/ |
H A D | lockfs.c | 424 struct mnttab mnt, *mntp = &mnt; in getmntnames() local 433 while ((getmntent(mnttab, mntp)) == 0) { in getmntnames() 434 if (strcmp(mntp->mnt_fstype, MNTTYPE_UFS) != 0) in getmntnames() 436 fnlen = strlen(mntp->mnt_mountp) + 1; in getmntnames() 439 strcpy(fnp->fn_name, mntp->mnt_mountp); in getmntnames()
|