Files
apfstests/tests/btrfs/048.out
T
Filipe Manana 0837e90798 btrfs/048: fix test failure when fs mounted with v2 space cache option
In order to check that the filesystem generation does not change
after failure to set a property, the test expects a specific
generation number of 7 in its golden output. That currently works
except when using the v2 space cache mount option (MOUNT_OPTIONS="-o
space_cache=v2"), since the filesystem generation is 8 because
creating a v2 space cache adds an additional transaction commit. So
update the test to not hardcode specific generation numbers in its
golden output and just output an unexpected message if the
generation number changes.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2019-09-08 19:24:02 +08:00

104 lines
1.8 KiB
Plaintext

QA output created by 048
Testing label property
label=
***
label=foobar
***
ro=false
label=foobar
***
label=
***
ERROR: object is not compatible with property
***
Testing subvolume ro property
ro=false
***
ERROR: invalid value for property
***
***
ro=true
***
touch: cannot touch 'SCRATCH_MNT/sv1/foobar': Read-only file system
***
ro=false
***
Testing compression property
***
ERROR: failed to set compression for SCRATCH_MNT/testdir/file1: Invalid argument
***
compression=lzo
compression=lzo
compression=zlib
***
compression=lzo
***
compression=lzo
***
compression=lzo
***
compression=lzo
***
compression=lzo
***
compression=lzo
***
compression=lzo
***
***
***
***
***
***
Testing properties with send
compression=lzo
compression=lzo
***
compression=lzo
compression=lzo
compression=lzo
***
Testing subvolume properties
compression=lzo
***
compression=lzo
***
compression=lzo
***
compression=lzo
***
compression=zlib
Testing subvolume property inheritance
compression=lzo
compression=lzo
Testing argument validation, should fail
ERROR: failed to set compression for SCRATCH_MNT: Invalid argument
***
ERROR: failed to set compression for SCRATCH_MNT: Invalid argument
***
ERROR: failed to set compression for SCRATCH_MNT: Invalid argument
Testing if property is persistent across failed validation
ERROR: failed to set compression for SCRATCH_MNT: Invalid argument
compression=lzo
Testing generation is unchanged after failed validation
ERROR: failed to set compression for SCRATCH_MNT: Invalid argument
Testing argument validation with options
***
***
Testing invalid argument validation with options, should fail
ERROR: failed to set compression for SCRATCH_MNT: Invalid argument
***
ERROR: failed to set compression for SCRATCH_MNT: Invalid argument
***
ERROR: failed to set compression for SCRATCH_MNT: Invalid argument