/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_copies/ |
H A D | zfs_copies_006_pos.ksh | 46 if ismounted $mntp ufs ; then 47 log_must $UMOUNT $mntp 54 if [[ -d $mntp ]]; then 55 $RM -rf $mntp 62 mntp=$UFS_MNTPOINT 65 if [[ ! -d $mntp ]]; then 66 $MKDIR -p $mntp 70 do_vol_test ufs $val $mntp
|
H A D | zfs_copies.kshlib | 99 typeset mntp=$3 109 log_must $MOUNT -F ufs -o rw $vol_b_path $mntp 120 log_must $MKFILE $FILESIZE $mntp/$FILE 138 $UMOUNT $mntp
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_share/ |
H A D | zfs_share_006_pos.ksh | 55 for fs in $mntp $TESTDIR1 $TESTDIR2 71 typeset mntp=$1 74 not_shared $mntp || \ 75 log_fail "Mountpoint: $mntp is already shared." 79 not_shared $mntp || \ 80 log_fail "File system $mntp is shared (set sharenfs)." 97 typeset mntp=$(get_prop mountpoint $TESTPOOL/$TESTCTR) 98 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 | 81 typeset mntp=$1 84 not_shared $mntp || \ 88 is_shared $mntp || \ 95 is_shared $mntp && \ 99 is_shared $mntp || \
|
H A D | zfs_share_003_pos.ksh | 71 typeset mntp=$1 74 not_shared $mntp || \ 79 not_shared $mntp || \ 89 not_shared $mntp || \
|
/titanic_41/usr/src/cmd/fs.d/ufs/quotaon/ |
H A D | quotaon.c | 90 struct mnttab mntp; in main() local 211 while ((status = getmntent(mtab, &mntp)) == 0) in main() 225 while ((status = getmntent(mtab, &mntp)) == NULL) { in main() 226 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) == 0 && in main() 227 !hasmntopt(&mntp, MNTOPT_RO) && in main() 228 (oneof(mntp.mnt_special, listp, listcnt) || in main() 229 oneof(mntp.mnt_mountp, listp, listcnt))) { in main() 230 errs += quotaonoff(&mntp, offmode); in main() 248 quotaonoff(struct mnttab *mntp, int offmode) in quotaonoff() argument 252 if (quotactl(Q_QUOTAOFF, mntp->mnt_mountp, (uid_t)0, NULL) < 0) in quotaonoff() [all …]
|
/titanic_41/usr/src/cmd/fs.d/ufs/quotacheck/ |
H A D | quotacheck.c | 121 struct mnttab mntp; in main() local 236 while (getmntent(mtab, &mntp) == NULL) { in main() 237 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) == 0 && in main() 238 !hasmntopt(&mntp, MNTOPT_RO) && in main() 239 (oneof(mntp.mnt_special, listp, listcnt) || in main() 240 oneof(mntp.mnt_mountp, listp, listcnt))) { in main() 242 "%s/%s", mntp.mnt_mountp, QFNAME); in main() 244 chkquota(mntp.mnt_special, in main() 245 mntp.mnt_mountp, quotafile); in main() 274 struct mnttab mntp, mpref; in preen() local [all …]
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unshare/ |
H A D | zfs_unshare_001_pos.ksh | 83 typeset mntp=$1 90 not_shared $mntp || 91 log_must $UNSHARE -F nfs $mntp 93 is_shared $mntp || \ 98 is_shared $mntp || log_must $ZFS share $filesystem 104 not_shared $mntp || log_fail "'zfs unshare <filesystem>' fails" 108 log_must $ZFS unshare $mntp 109 not_shared $mntp || log_fail "'zfs unshare <mountpoint>' fails" 113 log_mustnot $ZFS unshare $mntp
|
H A D | zfs_unshare_002_pos.ksh | 81 typeset mntp=$1 85 not_shared $mntp || \ 89 log_must $SHARE -F nfs $mntp 90 is_shared $mntp || \ 96 is_shared $mntp || \ 103 log_mustnot $ZFS unshare $mntp 104 is_shared $mntp || \
|
H A D | zfs_unshare_003_pos.ksh | 64 typeset mntp=$1 71 is_shared $mntp || $UNSHARE -F nfs $mntp 77 not_shared $mntp || \ 80 not_shared $mntp@snapshot || \
|
/titanic_41/usr/src/cmd/fs.d/nfs/umount/ |
H A D | umount.c | 165 struct extmnttab *mntp; in nfs_unmount() local 169 mntp = mnttab_find(pathname); in nfs_unmount() 170 if (mntp) { in nfs_unmount() 171 pathname = mntp->mnt_mountp; in nfs_unmount() 174 if (mntp) in nfs_unmount() 175 is_v4 = is_v4_mount(mntp); in nfs_unmount() 195 if (mntp) { in nfs_unmount() 196 inform_server(mntp->mnt_special, mntp->mnt_mntopts, quick); in nfs_unmount() 361 is_v4_mount(struct extmnttab *mntp) in is_v4_mount() argument 367 if (mntp == NULL) in is_v4_mount() [all …]
|
/titanic_41/usr/src/cmd/fs.d/ufs/repquota/ |
H A D | repquota.c | 101 struct mnttab mntp; in main() local 209 while (getmntent(mtab, &mntp) == 0) { in main() 210 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) == 0 && in main() 211 !hasmntopt(&mntp, MNTOPT_RO) && in main() 212 (oneof(mntp.mnt_special, listp, listcnt) || in main() 213 oneof(mntp.mnt_mountp, listp, listcnt))) { in main() 215 mntp.mnt_mountp, QFNAME); in main() 216 errs += repquota(mntp.mnt_special, in main() 217 mntp.mnt_mountp, quotafile); in main() 440 struct mnttab mntp; in quotactl() local [all …]
|
/titanic_41/usr/src/cmd/fs.d/ufs/quot/ |
H A D | quot.c | 193 struct mnttab mntp; in quotall() local 203 while (getmntent(fstab, &mntp) == NULL) { in quotall() 204 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0) in quotall() 207 if ((cp = getfullrawname(mntp.mnt_special)) == NULL) in quotall() 213 if (check(cp, mntp.mnt_mountp) == 0) { in quotall() 248 struct mnttab mntp; in check() local 255 while (getmntent(fstab, &mntp) == NULL) { in check() 256 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0) in check() 258 if (strcmp(mntp.mnt_special, file) == 0) { in check() 259 fsdir = mntp.mnt_mountp; in check() [all …]
|
/titanic_41/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
|
/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | mntent.c | 37 static struct mntent *mntp; variable 43 if (mntp == 0) in _mnt() 44 mntp = (struct mntent *)calloc(1, sizeof (struct mntent)); in _mnt() 45 return (mntp); in _mnt() 161 nfields = mnttabscan(mnttabp, mntp); in getmntent() 164 return (mntp); in getmntent()
|
/titanic_41/usr/src/test/zfs-tests/tests/functional/userquota/ |
H A D | userquota_common.kshlib | 73 typeset mntp=$(get_prop mountpoint $fs) 74 log_must $CHMOD 0777 $mntp 83 typeset mntp=$(get_prop mountpoint $fs) 84 log_must $CHMOD 0755 $mntp
|
H A D | cleanup.ksh | 38 typeset mntp=$(get_prop mountpoint $QFS) 39 log_must $CHMOD 0755 $mntp
|
/titanic_41/usr/src/cmd/stat/fsstat/ |
H A D | fsstat.c | 681 struct mnt *mntp; in set_mntpt() local 706 if ((mntp = malloc(sizeof (*mntp))) == NULL) { in set_mntpt() 710 mntp->m_mntpt = strdup(mnttab.mnt_mountp); in set_mntpt() 711 mntp->m_next = mnt_list; in set_mntpt() 712 mnt_list = mntp; in set_mntpt() 726 for (mntp = mnt_list; mntp; mntp = mntp->m_next) { in set_mntpt() 727 if (strncmp(path, mntp->m_mntpt, strlen(mntp->m_mntpt)) == 0) { in set_mntpt() 728 if (mntp->m_fsid == 0) { in set_mntpt() 729 if (statvfs64(mntp->m_mntpt, &statvfsbuf)) { in set_mntpt() 733 mntp->m_fsid = statvfsbuf.f_fsid; in set_mntpt() [all …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/cmd/fs.d/ufs/edquota/ |
H A D | edquota.c | 659 struct mnttab mntp; in setupfs() local 670 while (getmntent(mtab, &mntp) == 0) { in setupfs() 671 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0) in setupfs() 673 if (stat64(mntp.mnt_special, &statb) < 0) in setupfs() 679 mntp.mnt_mountp, QFNAME); in setupfs() 688 fsqp->fsq_fs = strdup(mntp.mnt_mountp); in setupfs() 689 fsqp->fsq_dev = strdup(mntp.mnt_special); in setupfs() 820 struct mnttab mntp; in quotactl() local 844 while ((status = getmntent(fstab, &mntp)) == NULL) { in quotactl() 853 if (strcmp(mntp.mnt_fstype, MNTTYPE_UFS) != 0 || in quotactl() [all …]
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/rexd/ |
H A D | mntent.c | 35 static struct mnttab *mntp = 0; variable 45 if (mntp == 0) in _mnt() 46 mntp = (struct mnttab *)calloc(1, sizeof (struct mnttab)); in _mnt() 47 return (mntp); in _mnt()
|
/titanic_41/usr/src/cmd/fs.d/smbclnt/umount/ |
H A D | umount.c | 133 struct extmnttab *mntp; in smbfs_unmount() local 136 mntp = mnttab_find(pathname); in smbfs_unmount() 137 if (mntp) { in smbfs_unmount() 138 pathname = mntp->mnt_mountp; in smbfs_unmount()
|
/titanic_41/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
|