/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_receive/ |
H A D | zfs_receive_010_pos.ksh | 51 local mntpnt=$2 60 mkdir ${mntpnt}/d$objnum 62 touch ${mntpnt}/h$objnum 90 mntpnt=$(get_prop mountpoint $fs) 102 create_pair 8 $mntpnt $mntpnt2 "file" "file" 105 create_pair 9 $mntpnt $mntpnt2 "file" "hole1" 111 create_pair 11 $mntpnt $mntpnt2 "file" "missing" 114 create_pair 12 $mntpnt $mntpnt2 "hole1" "hole2" 120 create_pair 14 $mntpnt $mntpnt2 "hole1" "missing" 137 rm $mntpnt/h17 [all …]
|
H A D | zfs_receive_003_pos.ksh | 54 for file in $ibackup $mntpnt/file1 $mntpnt/file2; do 65 mntpnt=$(get_prop mountpoint $fs) || log_fail "get_prop mountpoint $fs" 66 log_must mkfile 10m $mntpnt/file1 68 log_must mkfile 10m $mntpnt/file2 76 if [[ ! -f $mntpnt/file1 || ! -f $mntpnt/file2 ]]; then 82 log_must rm -rf $mntpnt/file1 87 log_must rm -rf $mntpnt/file1 89 if [[ ! -f $mntpnt/file1 || ! -f $mntpnt/file2 ]]; then
|
H A D | zfs_receive_007_neg.ksh | 52 for file in $ibackup $mntpnt/file1 $mntpnt/file2; do 67 mntpnt=$(get_prop mountpoint $fs) || log_fail "get_prop mountpoint $fs" 68 log_must mkfile 10m $mntpnt/file1 70 log_must mkfile 10m $mntpnt/file2 79 log_must mkfile 20m $mntpnt/file1 80 log_must rm -rf $mntpnt/file2
|
H A D | zfs_receive_006_pos.ksh | 56 for file in $fbackup1 $fbackup2 $mntpnt/file1 $mntpnt/file2; do 85 mntpnt=$(get_prop mountpoint $fs) || log_fail "get_prop mountpoint $fs" 86 log_must mkfile 10m $mntpnt/file1 88 log_must mkfile 10m $mntpnt/file2
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/ |
H A D | send-wDR_encrypted_zvol.ksh | 43 ismounted $mntpnt ext4 && log_must umount $mntpnt 46 ismounted $mntpnt ufs && log_must umount $mntpnt 49 [[ -d $mntpnt ]] && log_must rm -rf $keyfile 62 typeset mntpnt=$TESTDIR/$TESTVOL 78 log_must mkdir -p $mntpnt 80 log_must mount $zdev $mntpnt 83 log_must dd if=/dev/urandom of=$mntpnt/file bs=1M count=1 85 log_must cp $mntpnt/file $mntpnt/file$j 99 md5_1=$(cat $mntpnt/* | digest -a md5)
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_export/ |
H A D | zpool_export_004_pos.ksh | 55 mntpnt=$(get_prop mountpoint $TESTPOOL) 56 datasetexists $TESTPOOL1 || log_must zpool import -d $mntpnt $TESTPOOL1 61 if [[ -e $mntpnt/vdev$i ]]; then 62 log_must rm -f $mntpnt/vdev$i 72 mntpnt=$(get_prop mountpoint $TESTPOOL) 76 log_must mkfile $MINVDEVSIZE $mntpnt/vdev$i 77 eval vdev$i=$mntpnt/vdev$i 85 log_must zpool import -d $mntpnt $TESTPOOL1 90 log_must zpool import -d $mntpnt $TESTPOOL1 96 log_must zpool import -d $mntpnt $TESTPOOL1
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/refquota/ |
H A D | refquota_001_pos.ksh | 64 mntpnt=$(get_prop mountpoint $fs) 66 log_mustnot mkfile 11M $mntpnt/file 67 log_must mkfile 9M $mntpnt/file 69 log_mustnot mkfile 2M $mntpnt/file2 71 mntpnt=$(get_prop mountpoint $sub) 72 log_must mkfile 10M $mntpnt/file 74 log_must mkfile 10 $mntpnt/file2
|
H A D | refquota_004_pos.ksh | 61 mntpnt=$(get_prop mountpoint $fs) 64 log_must mkfile 7M $mntpnt/$TESTFILE.$i 66 log_must rm $mntpnt/$TESTFILE.$i 74 log_mustnot mkfile 7M $mntpnt/$TESTFILE
|
H A D | refquota_005_pos.ksh | 62 mntpnt=$(get_prop mountpoint $fs/subfs) 65 log_must mkfile 7M $mntpnt/$TESTFILE.$i 67 log_must rm $mntpnt/$TESTFILE.$i 75 log_mustnot mkfile 7M $mntpnt/$TESTFILE
|
H A D | refquota_002_pos.ksh | 63 mntpnt=$(get_prop mountpoint $fs) 64 log_mustnot mkfile 20M $mntpnt/$TESTFILE 77 log_must rm $mntpnt/$TESTFILE 81 log_mustnot mkfile 20M $mntpnt/$TESTFILE
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | fs_mounts.c | 88 if (mntpnt == NULL) { in fs_get_availablesize() 96 if (statvfs64(mntpnt, &stvfs) != -1) { in fs_get_availablesize() 113 if (mntpnt == NULL) { in fs_get_avail_for_nonsuperuser_size() 121 if (statvfs64(mntpnt, &stvfs) != -1) { in fs_get_avail_for_nonsuperuser_size() 138 if (mntpnt == NULL) { in fs_get_blocksize() 146 if (statvfs64(mntpnt, &stvfs) != -1) { in fs_get_blocksize() 225 if (mntpnt == NULL) { in fs_get_fragsize() 249 if (mntpnt == NULL) { in fs_get_maxfilenamelen() 389 if (mntpnt == NULL) { in fs_is_readonly() 480 if (mntpnt == NULL) { in fs_get_totalsize() [all …]
|
H A D | libfsmgt.h | 457 unsigned long long fs_get_availablesize(char *mntpnt, int *errp); 474 unsigned long long fs_get_avail_for_nonsuperuser_size(char *mntpnt, 492 unsigned long long fs_get_blocksize(char *mntpnt, int *errp); 537 unsigned long fs_get_fragsize(char *mntpnt, int *errp); 553 unsigned long fs_get_maxfilenamelen(char *mntpnt, int *errp); 605 unsigned long long fs_get_totalsize(char *mntpnt, int *errp); 621 unsigned long long fs_get_usedsize(char *mntpnt, int *errp); 638 boolean_t fs_is_readonly(char *mntpnt, int *errp);
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cachefile/ |
H A D | cachefile_004_pos.ksh | 58 mntpnt=$(get_prop mountpoint $TESTPOOL) 61 if [[ -e $mntpnt/vdev$i ]]; then 62 log_must rm -f $mntpnt/vdev$i 84 mntpnt=$(get_prop mountpoint $TESTPOOL) 87 log_must mkfile $MINVDEVSIZE $mntpnt/vdev$i 88 eval vdev$i=$mntpnt/vdev$i 111 log_must zpool import -d $mntpnt $TESTPOOL1 114 log_must zpool import -d $mntpnt $TESTPOOL2
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_mount/ |
H A D | zfs_mount_008_pos.ksh | 67 mntpnt=$(get_prop mountpoint $fs) 71 testfile=$mntpnt/$TESTFILE0; testfile1=$mntpnt1/$TESTFILE1 75 log_must zfs set mountpoint=$mntpnt $fs1 80 log_must mkfile 1M $mntpnt/$TESTFILE2 84 log_must ls $mntpnt/$TESTFILE1 $mntpnt/$TESTFILE2 93 log_mustnot ls $mntpnt/$TESTFILE2
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/ |
H A D | zfs_send_007_pos.ksh | 59 mntpnt=$(get_prop mountpoint "$POOL/fs") 60 log_must dd if=/dev/urandom of=${mntpnt}/file bs=512 count=1 2>/dev/null 61 first_object=$(ls -i $mntpnt | awk '{print $1}') 64 log_must find $mntpnt -delete 66 log_must mkfiles "$mntpnt/" 4000 67 FILE=$(ls -i $mntpnt | awk \ 73 dd if=/dev/urandom of=${mntpnt}/$FILE bs=512 count=1 seek=1 2>/dev/null 84 log_must diff -r $mntpnt $recv_mntpnt
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/ |
H A D | zfs_acl_chmod_002_pos.ksh | 57 mntpnt=$(get_prop mountpoint $ACL_UPGRADE_FS) 58 log_must mkdir $mntpnt/dir.$$ 59 log_must chmod A+owner@:rwxp:f:allow,group@:rwxp:f:allow $mntpnt/dir.$$ 61 log_must touch $mntpnt/dir.$$/file.$$ 62 log_must eval "ls -V $mntpnt/dir.$$/file.$$ > /dev/null 2>&1"
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/ |
H A D | history_001_pos.ksh | 61 mntpnt=$(get_prop mountpoint $TESTPOOL) 63 VDEV1=$mntpnt/vdev1; VDEV2=$mntpnt/vdev2; 64 VDEV3=$mntpnt/vdev3; VDEV4=$mntpnt/vdev4; 83 commands=("zpool export $MPOOL" "zpool import -d $mntpnt $MPOOL" 84 "zpool destroy $MPOOL" "zpool import -D -f -d $mntpnt $MPOOL")
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_mount.c | 77 char mntpnt[MAXPATHLEN]; in do_mount1() local 140 len = snprintf(mntpnt, sizeof (mntpnt), "%s%s%s", path, in do_mount1() 143 if (len >= sizeof (mntpnt)) { in do_mount1() 154 while (mntpnt[len] == '/') in do_mount1() 155 mntpnt[len--] = '\0'; in do_mount1() 157 (void) strcpy(spec_mntpnt, mntpnt); in do_mount1() 345 special, mntpnt, fstype, opts); 348 if (stat(mntpnt, &stbuf) < 0) { 373 newargv[i++] = mntpnt; 377 if (stat(mntpnt, &stbuf) == 0) { [all …]
|
H A D | auto_subr.c | 139 "/zone/%s%s", zonename, mntpnt); in loadzone_maps() 184 if (strcmp(mntpnt, "/-") == 0) in dirinit() 189 p = mntpnt + (strlen(mntpnt) - 1); in dirinit() 192 if (*mntpnt != '/') { in dirinit() 196 if (p = check_hier(mntpnt)) { in dirinit() 198 p, mntpnt); in dirinit() 216 (strcmp(mntpnt, "/home") == 0) && in dirinit() 225 dir->dir_name = strdup(mntpnt); in dirinit() 271 check_hier(mntpnt) in check_hier() argument 272 char *mntpnt; in check_hier() [all …]
|
H A D | mount.c | 67 char *mntpnt, *mapname; in main() local 108 mntpnt = argv[optind + 1]; in main() 110 if (strcmp(mntpnt, "/-") == 0) { in main() 130 fni.path = mntpnt; in main() 135 fni.key = mntpnt; in main() 152 error = mount(fni.map, mntpnt, mntflags | MS_DATA | MS_OPTIONSTR, in main()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_resilver/ |
H A D | zpool_resilver_restart.ksh | 49 log_must rm -f $mntpnt/biggerfile1 50 log_must rm -f $mntpnt/biggerfile2 57 mntpnt=$(get_prop mountpoint $TESTPOOL/$TESTFS) 60 log_must file_write -b 524288 -c 1024 -o create -d 0 -f $mntpnt/biggerfile1 65 log_must file_write -b 524288 -c 1024 -o create -d 0 -f $mntpnt/biggerfile2
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/refreserv/ |
H A D | refreserv_001_pos.ksh | 65 mntpnt=$(get_prop mountpoint $fs) 66 log_mustnot mkfile 15M $mntpnt/$TESTFILE 68 log_must rm -f $mntpnt/$TESTFILE 72 log_mustnot mkfile 15M $mntpnt/$TESTFILE
|
H A D | refreserv_003_pos.ksh | 63 mntpnt=$(get_prop mountpoint $fs) 64 log_must mkfile 7M $mntpnt/$TESTFILE 67 log_must mkfile 7M $mntpnt/$TESTFILE.2 70 log_must mkfile 7M $mntpnt/$TESTFILE.3
|
H A D | refreserv_004_pos.ksh | 77 typeset mntpnt 78 mntpnt=$(get_prop mountpoint $subfs) 79 log_must mkfile $avail $mntpnt/$TESTFILE 84 log_mustnot mkfile $avail $mntpnt/$TESTFILE
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_scrub/ |
H A D | zpool_scrub_multiple_copies.ksh | 51 typeset mntpnt=$(get_prop mountpoint $TESTPOOL/$TESTFS2) 52 log_must mkfile 10m $mntpnt/file 55 log_must zinject -a -t data -C 0,1 -e io $mntpnt/file 63 log_must dd if=$mntpnt/file of=/dev/null bs=1M iflag=fullblock
|