1 QA output created by 572
3 # Enabling verity on file with verity already enabled fails with EEXIST
5 ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/file.fsv': File exists
7 # Enabling verity with invalid hash algorithm fails with EINVAL
8 ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/file.fsv': Invalid argument
10 # Enabling verity with invalid block size fails with EINVAL
11 ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/file.fsv': Invalid argument
13 # Enabling verity on directory fails with EISDIR
14 ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/dir': Is a directory
16 # Enabling verity with too-long salt fails with EMSGSIZE
17 ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/file.fsv': Message too long
19 # Enabling verity on file on read-only filesystem fails with EROFS
20 ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/file.fsv': Read-only file system
22 # Enabling verity on file open for writing fails with ETXTBSY
23 ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/file.fsv': Text file busy
25 # Enabling verity can be interrupted
27 # Enabling verity on file with verity already being enabled fails with EBUSY
28 ERROR: FS_IOC_ENABLE_VERITY failed on 'SCRATCH_MNT/file.fsv': Device or resource busy
30 # verity file can't be opened for writing
32 * xfs_io writing, should be O_RDWR
33 SCRATCH_MNT/file.fsv: Operation not permitted
34 * bash >>, should be O_APPEND
35 bash: SCRATCH_MNT/file.fsv: Operation not permitted
36 * bash >, should be O_WRONLY|O_CREAT|O_TRUNC
37 bash: SCRATCH_MNT/file.fsv: Operation not permitted
39 # verity file can be read
41 # verity file can be measured
42 sha256:be54121da3877f8852c65136d731784f134c4dd9d95071502e80d7be9f99b263
44 # verity file can be renamed
46 # verity file can be unlinked
48 # verity file can be linked to
50 # verity file can be chmodded
52 # verity file can be chowned
54 # verity file has correct contents and size
58 # Trying to measure non-verity file fails with ENODATA
59 ERROR: FS_IOC_MEASURE_VERITY failed on 'SCRATCH_MNT/file.fsv': No data available
61 # verity on 1-byte file
64 # verity on 4095-byte file
67 # verity on 4096-byte file
70 # verity on 100M file (multiple levels in hash tree)
73 # verity on sparse file