• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/slog/

Lines Matching refs:TESTFS

48 #	1. Create an empty file system (TESTFS)
49 # 2. Freeze TESTFS
51 # 4. Copy TESTFS to temporary location (TESTDIR/copy)
53 # <at this stage TESTFS is empty again and unfrozen, and the
55 # 6. Remount TESTFS <which replays the intent log>
56 # 7. Compare TESTFS against the TESTDIR/copy
66 # 1. Create an empty file system (TESTFS)
70 log_must zfs create $TESTPOOL/$TESTFS
77 log_must dd if=/dev/zero of=/$TESTPOOL/$TESTFS/sync \
81 # 2. Freeze TESTFS
90 log_must touch /$TESTPOOL/$TESTFS/a
93 log_must mv /$TESTPOOL/$TESTFS/a /$TESTPOOL/$TESTFS/b
96 log_must touch /$TESTPOOL/$TESTFS/c
97 log_must ln -s /$TESTPOOL/$TESTFS/c /$TESTPOOL/$TESTFS/d
100 log_must touch /$TESTPOOL/$TESTFS/e
101 log_must ln /$TESTPOOL/$TESTFS/e /$TESTPOOL/$TESTFS/f
104 log_must mkdir /$TESTPOOL/$TESTFS/dir_to_delete
107 log_must rmdir /$TESTPOOL/$TESTFS/dir_to_delete
111 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/payload \
113 typeset checksum=$(sha256digest /$TESTPOOL/$TESTFS/payload)
116 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/small_file \
118 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/small_file \
122 log_must cp -R /usr/share/dict /$TESTPOOL/$TESTFS
123 log_must rm -rf /$TESTPOOL/$TESTFS/dict
126 log_must touch /$TESTPOOL/$TESTFS/setattr
127 log_must chmod 567 /$TESTPOOL/$TESTFS/setattr
129 log_must chgrp wheel /$TESTPOOL/$TESTFS/setattr
131 log_must chgrp root /$TESTPOOL/$TESTFS/setattr
133 log_must touch -cm -t 201311271200 /$TESTPOOL/$TESTFS/setattr
136 log_must mkfile 4k /$TESTPOOL/$TESTFS/truncated_file
137 log_must truncate -s 0 /$TESTPOOL/$TESTFS/truncated_file
140 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/large \
144 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/holes.1 \
146 log_must dd if=/dev/zero of=/$TESTPOOL/$TESTFS/holes.1 \
149 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/holes.2 \
151 log_must dd if=/dev/zero of=/$TESTPOOL/$TESTFS/holes.2 \
154 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/holes.3 \
156 log_must dd if=/dev/zero of=/$TESTPOOL/$TESTFS/holes.3 \
160 log_must mkdir /$TESTPOOL/$TESTFS/xattr.dir
161 log_must touch /$TESTPOOL/$TESTFS/xattr.file
162 log_must set_xattr fileattr HelloWorld /$TESTPOOL/$TESTFS/xattr.dir
163 log_must set_xattr tmpattr HelloWorld /$TESTPOOL/$TESTFS/xattr.dir
164 log_must rm_xattr fileattr /$TESTPOOL/$TESTFS/xattr.dir
166 log_must set_xattr fileattr HelloWorld /$TESTPOOL/$TESTFS/xattr.file
167 log_must set_xattr tmpattr HelloWorld /$TESTPOOL/$TESTFS/xattr.file
168 log_must rm_xattr tmpattr /$TESTPOOL/$TESTFS/xattr.file
172 log_must dd if=/dev/urandom of=/$TESTPOOL/$TESTFS/link_and_unlink \
174 log_must ln /$TESTPOOL/$TESTFS/link_and_unlink \
175 /$TESTPOOL/$TESTFS/link_and_unlink.link
176 log_must rm /$TESTPOOL/$TESTFS/link_and_unlink.link
179 # 4. Copy TESTFS to temporary location (TESTDIR/copy)
182 log_must cp -a /$TESTPOOL/$TESTFS/* $TESTDIR/copy/
187 # At this stage TESTFS is empty again and frozen, the intent log contains
190 log_must zfs unmount /$TESTPOOL/$TESTFS
193 log_must zdb -iv $TESTPOOL/$TESTFS
198 # 6. Remount TESTFS <which replays the intent log>
206 # 7. Compare TESTFS against the TESTDIR/copy
212 log_must ls_xattr /$TESTPOOL/$TESTFS/xattr.dir
213 log_must ls_xattr /$TESTPOOL/$TESTFS/xattr.file
216 log_must diff -r /$TESTPOOL/$TESTFS $TESTDIR/copy
219 typeset checksum1=$(sha256digest /$TESTPOOL/$TESTFS/payload)