]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
btrfs/173: make the test work when mounting with nodatacow
authorFilipe Manana <fdmanana@suse.com>
Thu, 1 Feb 2024 18:03:48 +0000 (18:03 +0000)
committerZorro Lang <zlang@kernel.org>
Fri, 1 Mar 2024 11:24:16 +0000 (19:24 +0800)
commit45d779c9d241bdc1cb1d2761fe23f55251c09dde
tree854d1c1a880e4a9c3268c99288fc00d54c5da8f9
parent15c084fe1137fedf870e4947ed259a89f1e9c62e
btrfs/173: make the test work when mounting with nodatacow

Currently btrfs/173 fails when passing "-o nodatacow" to MOUNT_OPTIONS
because it assumes that when creating a file it does not have the
nodatacow flag set, which is obviously not true if the fs is mounted with
"-o nodatacow". To allow the test to run successfully with nodatacow,
just make sure it clears the nodatacow flag from the file if the fs was
mounted with "-o nodatacow".

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/173