From 60ca950f42014fbfde91a47d97f1c25d804cdfa2 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Mon, 21 Aug 2023 12:50:48 -0700 Subject: [PATCH] Drop caches in totl test Now that the _READ_XATTR_TOTALS ioctl uses the weak item cache we have to drop caches before each attempt to read the xattrs that we just wrote and synced. Signed-off-by: Zach Brown --- tests/tests/totl-xattr-tag.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests/totl-xattr-tag.sh b/tests/tests/totl-xattr-tag.sh index dd2d90b7..6a133860 100644 --- a/tests/tests/totl-xattr-tag.sh +++ b/tests/tests/totl-xattr-tag.sh @@ -3,6 +3,7 @@ t_require_commands touch rm setfattr scoutfs find_xattrs read_xattr_totals() { sync + echo 1 > $(t_debugfs_path)/drop_weak_item_cache scoutfs read-xattr-totals -p "$T_M0" } @@ -112,7 +113,6 @@ for phase in create update remove; do echo "$k.0.0 = ${totals[$k]}, ${counts[$k]}" done ) | grep -v "= 0, 0$" | sort -n >> $T_TMP.check_arr - sync read_xattr_totals | sort -n >> $T_TMP.check_read diff -u $T_TMP.check_arr $T_TMP.check_read || \