Searched refs:TESTDIR (Results 1 – 25 of 679) sorted by relevance
12345678910>>...28
52 log_must rm $TESTDIR/myfile.$$60 log_must touch $TESTDIR/myfile.$$61 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd71 log_must touch $TESTDIR/cpio.$$72 create_xattr $TESTDIR/cpio.$$ passwd /etc/passwd73 echo $TESTDIR/cpio.$$ | cpio -o@ > $TEST_BASE_DIR/xattr.$$.cpio74 echo $TESTDIR/cpio.$$ | cpio -o > $TEST_BASE_DIR/noxattr.$$.cpio78 log_mustnot eval "runat $TESTDIR/cpio.$$ cat passwd > /dev/null 2>&1"82 log_must eval "runat $TESTDIR/cpio.$$ cat passwd > /dev/null 2>&1"86 log_mustnot eval "runat $TESTDIR/cpio.$$ cat passwd > /dev/null 2>&1"[all …]
49 log_must rm $TESTDIR/myfile.$$56 log_must touch $TESTDIR/myfile.$$57 create_xattr $TESTDIR/myfile.$$ passwd /etc/passwd59 log_must umount $TESTDIR64 log_mustnot eval "runat $TESTDIR/myfile.$$ cat passwd > /dev/null 2>&1"65 log_mustnot eval "runat $TESTDIR/myfile.$$ rm passwd > /dev/null 2>&1"66 log_mustnot eval "runat $TESTDIR/myfile.$$ cp /etc/passwd . \69 log_must touch $TESTDIR/new.$$70 log_mustnot eval "runat $TESTDIR/new.$$ cp /etc/passwd . \72 log_mustnot eval "runat $TESTDIR/new.$$ rm passwd > /dev/null 2>&1"[all …]
56 log_must $RM $TESTDIR/myfile.${TESTCASE_ID}66 log_must $TOUCH $TESTDIR/myfile.${TESTCASE_ID}67 create_xattr $TESTDIR/myfile.${TESTCASE_ID} passwd /etc/passwd77 log_must $TOUCH $TESTDIR/cpio.${TESTCASE_ID}78 create_xattr $TESTDIR/cpio.${TESTCASE_ID} passwd /etc/passwd79 $ECHO $TESTDIR/cpio.${TESTCASE_ID} | $CPIO -o@ > $TMPDIR/xattr.${TESTCASE_ID}.cpio80 $ECHO $TESTDIR/cpio.${TESTCASE_ID} | $CPIO -o > $TMPDIR/noxattr.${TESTCASE_ID}.cpio84 log_mustnot eval "$RUNAT $TESTDIR/cpio.${TESTCASE_ID} $CAT passwd > /dev/null 2>&1"88 log_must eval "$RUNAT $TESTDIR/cpio.${TESTCASE_ID} $CAT passwd > /dev/null 2>&1"92 log_mustnot eval "$RUNAT $TESTDIR/cpio.${TESTCASE_ID} $CAT passwd > /dev/null 2>&1"[all …]
57 log_must $RM $TESTDIR/myfile.${TESTCASE_ID}72 log_must $TOUCH $TESTDIR/myfile.${TESTCASE_ID}73 create_xattr $TESTDIR/myfile.${TESTCASE_ID} passwd /etc/passwd75 log_must $UMOUNT $TESTDIR79 log_mustnot eval "$RUNAT $TESTDIR/myfile.${TESTCASE_ID} $CAT passwd > /dev/null 2>&1"80 log_mustnot eval "$RUNAT $TESTDIR/myfile.${TESTCASE_ID} $RM passwd > /dev/null 2>&1"81 log_mustnot eval "$RUNAT $TESTDIR/myfile.${TESTCASE_ID} $CP /etc/passwd . > /dev/null 2>&1"83 log_must $TOUCH $TESTDIR/new.${TESTCASE_ID}84 log_mustnot eval "$RUNAT $TESTDIR/new.${TESTCASE_ID} $CP /etc/passwd . > /dev/null 2>&1"85 log_mustnot eval "$RUNAT $TESTDIR/new.${TESTCASE_ID} $RM passwd > /dev/null 2>&1"[all …]
38 log_must ${MKDIR} ${TESTDIR}/dirs39 log_must ${MKDIR} ${TESTDIR}/dirs/leavealone40 log_must ${MKDIR} ${TESTDIR}/dirs/modify41 log_must ${MKDIR} ${TESTDIR}/dirs/rename42 log_must ${MKDIR} ${TESTDIR}/dirs/delete43 log_must ${MKDIR} ${TESTDIR}/files44 log_must ${TOUCH} ${TESTDIR}/files/leavealone45 log_must ${TOUCH} ${TESTDIR}/files/modify46 log_must ${TOUCH} ${TESTDIR}/files/rename47 log_must ${TOUCH} ${TESTDIR}/files/delete[all …]
47 log_must rm -f $TESTDIR/$i64 log_must $TOUCH $TESTDIR/$i65 log_must $CHMOD 0644 $TESTDIR/$i68 log_must chown 0:0 $TESTDIR/rroot_rroot69 log_must chown $ROOT_UID:$ROOT_UID $TESTDIR/uroot_uroot70 log_must chown $ROOT_UID:$OTHER_UID $TESTDIR/uroot_other71 log_must chown $OTHER_UID:$ROOT_UID $TESTDIR/uother_uroot72 log_must chown $OTHER_UID:$OTHER_UID $TESTDIR/uother_uother74 log_mustnot user_ns_exec $CHMOD 02755 $TESTDIR/rroot_rroot75 log_mustnot test -g $TESTDIR/rroot_rroot[all …]
53 log_must chflags noschg $TESTDIR/$i54 log_must rm -f $TESTDIR/$i56 log_must chattr -ia $TESTDIR/$i57 log_must rm -f $TESTDIR/$i70 log_must touch $TESTDIR/writable71 log_must touch $TESTDIR/immutable72 log_must touch $TESTDIR/append75 log_must chflags noschg $TESTDIR/writable76 log_must chflags schg $TESTDIR/immutable77 log_must chflags sappnd $TESTDIR/append[all …]
52 log_must chattr -ia $TESTDIR/$i53 log_must rm -f $TESTDIR/$i55 log_must chmod 0755 $TESTDIR62 log_must chmod 0777 $TESTDIR64 log_must user_run $QUSER1 touch $TESTDIR/writable65 log_must user_run $QUSER1 touch $TESTDIR/immutable66 log_must user_run $QUSER1 touch $TESTDIR/append68 log_must chattr -i $TESTDIR/writable69 log_must chattr +i $TESTDIR/immutable70 log_must chattr +a $TESTDIR/append[all …]
59 log_must $LS -lr $TESTDIR60 log_must $RM -rf $TESTDIR/*68 log_must $TOUCH $TESTDIR/069 log_must $MV $TESTDIR/0 $TESTDIR/170 log_must ln -s $TESTDIR/1 $TESTDIR/271 log_must ln $TESTDIR/1 $TESTDIR/372 log_must $MKDIR $TESTDIR/473 log_must $RMDIR $TESTDIR/476 log_mustnot test -f $TESTDIR/077 log_must test -f $TESTDIR/1[all …]
74 if [[ -e $TESTDIR ]]; then75 log_must $RM -rf $TESTDIR/* > /dev/null 2>&192 [[ -n $TESTDIR ]] && \93 $RM -rf $TESTDIR/* > /dev/null 2>&196 populate_dir $TESTDIR/file $COUNT $NUM_WRITES $BLOCKSZ $DATA98 log_note "Create a tarball from $TESTDIR contents..."100 cd $TESTDIR || log_fail "Could not cd $TESTDIR"101 log_must $TAR cf $TESTDIR/tarball.original.tar file*108 log_must $RM -f $TESTDIR/file* > /dev/null 2>&1113 log_must $TAR cf $TESTDIR/tarball.snapshot.tar file*[all …]
69 [[ -e $TESTDIR ]] && \70 log_must $RM -rf $TESTDIR/* > /dev/null 2>&177 [[ -n $TESTDIR ]] && \78 log_must $RM -rf $TESTDIR/* > /dev/null 2>&182 log_note "Populate the $TESTDIR directory (prior to first snapshot)"83 populate_dir $TESTDIR/original_file $COUNT $NUM_WRITES $BLOCKSZ ITER93 log_note "Populate the $TESTDIR directory (prior to second snapshot)"94 populate_dir $TESTDIR/afterfirst_file $COUNT $NUM_WRITES $BLOCKSZ ITER97 log_note "Populate the $TESTDIR directory (Post second snapshot)"98 populate_dir $TESTDIR/aftersecond_file $COUNT $NUM_WRITES $BLOCKSZ ITER[all …]
64 [[ -e $TESTDIR ]] && \65 log_must $RM -rf $TESTDIR/* > /dev/null 2>&171 [[ -n $TESTDIR ]] && \72 log_must $RM -rf $TESTDIR/* > /dev/null 2>&176 log_note "Populate the $TESTDIR directory (prior to snapshot)"77 populate_dir $TESTDIR/before_file $COUNT $NUM_WRITES $BLOCKSZ ITER87 log_note "Populate the $TESTDIR directory (post snapshot)"89 populate_dir $TESTDIR/after_file $COUNT $NUM_WRITES $BLOCKSZ ITER96 FILE_COUNT=`$LS -Al $TESTDIR/after* 2> /dev/null | $GREP -v "total" | wc -l`98 $LS -Al $TESTDIR[all …]
65 [[ -e $TESTDIR ]] && \66 log_must $RM -rf $TESTDIR/* > /dev/null 2>&173 [[ -n $TESTDIR ]] && \74 log_must $RM -rf $TESTDIR/* > /dev/null 2>&178 log_note "Populate the $TESTDIR directory (prior to snapshot)"79 populate_dir $TESTDIR/before_file $COUNT $NUM_WRITES $BLOCKSZ ITER88 log_note "Populate the $TESTDIR directory (post snapshot)"89 populate_dir $TESTDIR/after_file $COUNT $NUM_WRITES $BLOCKSZ ITER96 FILE_COUNT=`$LS -Al $TESTDIR/after* 2> /dev/null | $GREP -v "total" | wc -l`98 $LS -Al $TESTDIR[all …]
39 log_must zfs create -o mountpoint=$TESTDIR $origin46 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \47 >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed."52 o_atime=$(stat -c %X $TESTDIR/clone/file)53 o_ctime=$(stat -c %Z $TESTDIR/clone/file)54 o_mtime=$(stat -c %Y $TESTDIR/clone/file)56 o_atime=$(stat -f "%a" $TESTDIR/clone/file)57 o_ctime=$(stat -f "%c" $TESTDIR/clone/file)58 o_mtime=$(stat -f "%m" $TESTDIR/clone/file)60 o_atime=$(ls -E% all $TESTDIR/clone/file | awk '/atime/ {print $4}')[all …]
41 log_must zfs create -o mountpoint=$TESTDIR $origin47 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \48 >/dev/null 2>&1 || log_fail "dd of $TESTDIR/file failed."52 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \56 log_must rm -f $TESTDIR/file60 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \61 >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed."65 dd if=/$TESTDIR/file of=/$TESTDIR/clone/file bs=1024k count=$MEGS \69 log_must rm -f $TESTDIR/file72 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS conv=notrunc \[all …]
61 [ -e $TESTDIR ] && log_must rm -rf $TESTDIR/*68 [ -n $TESTDIR ] && log_must rm -rf $TESTDIR/*72 log_note "Populate the $TESTDIR directory (prior to first snapshot)"75 log_must file_write -o create -f $TESTDIR/original_file$i \89 log_note "Populate the $TESTDIR directory (prior to second snapshot)"92 log_must file_write -o create -f $TESTDIR/afterfirst_file$i \100 log_note "Populate the $TESTDIR directory (Post second snapshot)"103 log_must file_write -o create -f $TESTDIR/aftersecond_file$i \109 [ -n $TESTDIR ] && log_must rm -f $TESTDIR/original_file*116 FILE_COUNT=$(ls -A $TESTDIR/aftersecond* 2> /dev/null | wc -l)[all …]
57 [ -e $TESTDIR ] && log_must rm -rf $TESTDIR/*63 [ -n $TESTDIR ] && log_must rm -rf $TESTDIR/*67 log_note "Populate the $TESTDIR directory (prior to snapshot)"70 log_must file_write -o create -f $TESTDIR/before_file$i \84 log_note "Populate the $TESTDIR directory (post snapshot)"87 log_must file_write -o create -f $TESTDIR/after_file$i \98 FILE_COUNT=$(ls -A $TESTDIR/after* 2> /dev/null | wc -l)100 ls -Al $TESTDIR101 log_fail "$TESTDIR contains $FILE_COUNT after* files(s)."104 FILE_COUNT=$(ls -A $TESTDIR/before* 2> /dev/null | wc -l)[all …]
58 [ -e $TESTDIR ] && log_must rm -rf $TESTDIR/*65 [ -n $TESTDIR ] && log_must rm -rf $TESTDIR/*69 log_note "Populate the $TESTDIR directory (prior to snapshot)"72 log_must file_write -o create -f $TESTDIR/before_file$i \86 log_note "Populate the $TESTDIR directory (post snapshot)"89 log_must file_write -o create -f $TESTDIR/after_file$i \101 FILE_COUNT=$(ls -A $TESTDIR/after* 2> /dev/null | wc -l)103 ls -Al $TESTDIR104 log_fail "$TESTDIR contains $FILE_COUNT after* files(s)."107 FILE_COUNT=$(ls -A $TESTDIR/before* 2> /dev/null | wc -l)[all …]
60 [ -e $TESTDIR ] && log_must rm -rf $TESTDIR/*73 [ -n $TESTDIR ] && rm -rf $TESTDIR/*79 log_must file_write -o $OP -f $TESTDIR/file$i \84 log_note "Create a tarball from $TESTDIR contents..."86 log_must cd $TESTDIR94 log_must rm -f $TESTDIR/file*102 log_must mkdir $TESTDIR/original $TESTDIR/snapshot105 log_must cd $TESTDIR/original108 log_must cd $TESTDIR/snapshot113 log_must directory_diff $TESTDIR/original $TESTDIR/snapshot
51 rmdir $TESTDIR/dir.059 log_must touch $TESTDIR/file.060 log_must setfacl -m g:$ZFS_ACL_STAFF_GROUP:rw $TESTDIR/file.061 if ! getfacl $TESTDIR/file.0 2> /dev/null |64 log_note "$(getfacl $TESTDIR/file.0 2> /dev/null)"70 "echo 'echo test > /dev/null' > $TESTDIR/file.0"74 log_must mkdir $TESTDIR/dir.075 log_must chmod 700 $TESTDIR/dir.076 log_must setfacl -m g:$ZFS_ACL_STAFF_GROUP:rw $TESTDIR/dir.078 msk=$(ls -ld $TESTDIR/dir.0 | awk '{print $1}')[all …]
49 all_vdevs=$(echo $TESTDIR/vdev{1..6})50 log_must mkdir -p $TESTDIR60 log_must check_vdev_state $TESTPOOL2 $TESTDIR/vdev4 "ONLINE"61 log_must zinject -d $TESTDIR/vdev4 -A degrade $TESTPOOL262 log_must eval "zpool status -e $TESTPOOL2 | grep $TESTDIR/vdev4 | grep DEGRADED"65 log_must check_vdev_state $TESTPOOL2 $TESTDIR/vdev5 "ONLINE"66 log_must zinject -d $TESTDIR/vdev5 -A fault $TESTPOOL267 log_must eval "zpool status -e $TESTPOOL2 | grep $TESTDIR/vdev5 | grep FAULTED"74 log_must check_vdev_state $TESTPOOL2 $TESTDIR/vdev6 "ONLINE"78 log_must zinject -d $TESTDIR/vdev6 -D1000:100 $TESTPOOL2[all …]
58 rm -rf $TESTDIR64 log_must zfs set mountpoint=$TESTDIR $TESTPOOL/$TESTFS67 for files in $TESTDIR/file1 $TESTDIR/file2 $TESTDIR/file373 "$TOOSMALL $TESTDIR/file1" "$TESTPOOL1 $TESTDIR/file1 $TESTDIR/file2" \74 "$TOOSMALL mirror $TESTDIR/file1 $TESTDIR/file2" \75 "$TOOSMALL raidz $TESTDIR/file1 $TESTDIR/file2" \76 "$TOOSMALL draid $TESTDIR/file1 $TESTDIR/file2 $TESTDIR/file3"
32 mkdir -p $TESTDIR33 truncate -s 80M $TESTDIR/file{1..28}38 zpool create -f testpool1 draid $TESTDIR/file{1..10} \40 dedup $TESTDIR/file11 \41 special $TESTDIR/file12 \42 cache $TESTDIR/file13 \43 log $TESTDIR/file1445 zpool create -f testpool2 mirror $TESTDIR/file{15,16} \46 raidz1 $TESTDIR/file{17,18,19} \47 cache $TESTDIR/file20 \[all …]
63 [[ -d $TESTDIR ]] && $RM -rf $TESTDIR75 log_must $ZFS set mountpoint=$TESTDIR $TESTPOOL/$TESTFS78 log_must create_vdevs $TESTDIR/file1 $TESTDIR/file282 "$TOOSMALL $TESTDIR/file1" "$TESTPOOL1 $TESTDIR/file1 $TESTDIR/file2" \83 "$TOOSMALL mirror $TESTDIR/file1 $TESTDIR/file2" \84 "$TOOSMALL raidz $TESTDIR/file1 $TESTDIR/file2"