mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
btrfs/174: Adjust error message when setting compressed flag
Following kernel commit "btrfs: add missing check for nocow and compression inode flags" btrfs refuses setting +c on +C files during validation of the args. Account for this by adjusting the expected error message. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Marcos Paulo de Souza <mpdesouza@suse.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
f8b84ddfa5
commit
1781a22507
+1
-1
@@ -47,7 +47,7 @@ $LSATTR_PROG -l "$swapfile" | _filter_scratch | _filter_spaces
|
||||
|
||||
# Compression we reject outright.
|
||||
echo "Enable compression"
|
||||
$CHATTR_PROG +c "$swapfile" 2>&1 | grep -o "Text file busy"
|
||||
$CHATTR_PROG +c "$swapfile" 2>&1 | grep -o "Invalid argument while setting flags"
|
||||
$LSATTR_PROG -l "$swapfile" | _filter_scratch | _filter_spaces
|
||||
|
||||
echo "Snapshot"
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ QA output created by 174
|
||||
Disable nocow
|
||||
SCRATCH_MNT/swapvol/swap No_COW
|
||||
Enable compression
|
||||
Text file busy
|
||||
Invalid argument while setting flags
|
||||
SCRATCH_MNT/swapvol/swap No_COW
|
||||
Snapshot
|
||||
Text file busy
|
||||
|
||||
Reference in New Issue
Block a user