From: Naohiro Aota Date: Wed, 20 Nov 2019 06:44:06 +0000 (+0900) Subject: btrfs/085: check flakey device instead of backend device X-Git-Tag: v2022.05.01~947 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3414cae6d231e69a08e244da242cdcaf59aeac9f;p=xfstests-dev.git btrfs/085: check flakey device instead of backend device btrfs/085 mount and works on $FLAKEY_DEV, but it's inspecting the underlying $SCRATCH_DEV. Since writing to dm-flakey does not invalidate page cache of $SCRATCH_DEV, the btrfs command can read a stalled data from page cache. We should check the flakey device to avoid such cache inconsistency. Signed-off-by: Naohiro Aota Reviewed-by: Nikolay Borisov Signed-off-by: Eryu Guan --- diff --git a/tests/btrfs/085 b/tests/btrfs/085 index 4773ed80..2a31eefd 100755 --- a/tests/btrfs/085 +++ b/tests/btrfs/085 @@ -46,7 +46,7 @@ rm -f $seqres.full has_orphan_item() { INO=$1 - if $BTRFS_UTIL_PROG inspect-internal dump-tree $SCRATCH_DEV | \ + if $BTRFS_UTIL_PROG inspect-internal dump-tree $FLAKEY_DEV | \ grep -q "key (ORPHAN ORPHAN_ITEM $INO)"; then return 0 fi