From f1666f8ec6d52ae8dcc35e9b29ef0bfbc12af23c Mon Sep 17 00:00:00 2001 From: Amir Goldstein Date: Mon, 27 Aug 2018 21:29:26 +0300 Subject: [PATCH] generic/009: fix test failure with overlay over ext4 When running test with overlayfs and ext4 as base fs, we need to disable extent zeroout on the underlying base fs. Signed-off-by: Amir Goldstein Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- tests/generic/009 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/generic/009 b/tests/generic/009 index fa6ef466..a4f56d04 100755 --- a/tests/generic/009 +++ b/tests/generic/009 @@ -39,6 +39,9 @@ testfile=$TEST_DIR/009.$$ if [ "$FSTYP" = "ext4" ]; then _ext4_disable_extent_zeroout fi +if [ "$FSTYP" = "overlay" -a "$OVL_BASE_FSTYP" = "ext4" ]; then + _ext4_disable_extent_zeroout "$OVL_BASE_TEST_DEV" +fi # When PAGE_SIZE > 4096 some filesystems extent layout is different so # it would not match the output. -- 2.30.2