mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
797e625f28
And into tests/generic. Tests were found simply by grepping for the __supported_fs field in the tests. Output starts to look like: $ sudo ./check -g quick -r FSTYP -- xfs (debug) PLATFORM -- Linux/x86_64 test-1 3.5.0-rc5-dgc+ MKFS_OPTIONS -- -f -bsize=4096 /dev/vdb MOUNT_OPTIONS -- /dev/vdb /mnt/scratch ./242 1s ./183 2s generic/236 1s generic/014 1s generic/258 0s ./096 1s generic/245 0s ^C Ran: ./242 ./183 generic/236 generic/014 generic/258 ./096 generic/245 Passed all 7 tests Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Phil White <pwhite@sgi.com> [rjohnston@sgi.com added TOT changes] Signed-off-by: Rich Johnston <rjohnston@sgi.com>
53 lines
917 B
Plaintext
53 lines
917 B
Plaintext
QA output created by 093
|
|
|
|
touch file
|
|
chcap on file
|
|
ls -P on file
|
|
TESTDIR/093.file [all= CAP_CHOWN+p]
|
|
append to file as root
|
|
ls -P on file
|
|
TESTDIR/093.file [all= CAP_CHOWN+p]
|
|
cat file
|
|
----
|
|
data
|
|
----
|
|
append to file as user without caps
|
|
cat file
|
|
----
|
|
data
|
|
data
|
|
----
|
|
ls -P on file
|
|
TESTDIR/093.file []
|
|
append to file as user without caps a 2nd time
|
|
ls -P on file
|
|
TESTDIR/093.file []
|
|
cat file
|
|
----
|
|
data
|
|
data
|
|
data
|
|
----
|
|
only let root write to file
|
|
as non-root try to append to file
|
|
.append[2]: file: cannot create: Permission denied
|
|
restore perms on file
|
|
set a root EA on file
|
|
Attribute "test" set to a 7 byte value for file:
|
|
testval
|
|
list EA on file
|
|
Attribute "test" has a 7 byte value for file
|
|
as non-root try to append to file
|
|
list EA on file
|
|
Attribute "test" has a 7 byte value for file
|
|
as non-root call writemod
|
|
open for write "file" with 777
|
|
remove perms on file
|
|
write to the file
|
|
cat file
|
|
----
|
|
hi there |