From: Alexander Boyko Date: Mon, 13 Dec 2021 20:00:48 +0000 (-0500) Subject: LU-14658 tests: fix conf-sanity 122b test X-Git-Tag: 2.14.57~47 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F41%2F45841%2F3;p=fs%2Flustre-release.git LU-14658 tests: fix conf-sanity 122b test Sometimes the test 122b failed with: dd: failed to open '/mnt/lustre/d122b.conf-sanity/f122b.conf-sanity': Numerical result out of range ZFS readonly simulation produces OS_STATFS_READONLY flag. It leads to zero stripe_count at lod_get_stripe_count(), and lod_qos_prep_create() returns -34(ERANGE). The patch fixes it by file creation before replay_barrier. Test-Parameters: trivial fstype=zfs env=ONLY=122b,ONLY_REPEAT=20 testlist=conf-sanity Fixes: 747fed818be5 ("LU-14598 ofd: fix for IDIF sequence at ofd_preprw_write") Signed-off-by: Alexander Boyko Change-Id: I7ec04ffe09d0038bcf99e1a571f14d2bfb6a5df5 Reviewed-on: https://review.whamcloud.com/45841 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Artem Blagodarenko Reviewed-by: Elena Gryaznova Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index f6c0457..e3a56c7 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -8748,6 +8748,7 @@ test_122b() { error "unlinkmany failed unlink $files files" done sync + touch $DIR/$tdir/$tfile do_facet ost1 sync #we need a write req during recovery for ofd_seq_load replay_barrier ost1