From 96950fc30f5544f019aa8d95d8decf3149f03bf8 Mon Sep 17 00:00:00 2001 From: Alexander Boyko Date: Mon, 1 Oct 2018 08:47:34 -0400 Subject: [PATCH] LU-11716 tests: fix scrub tests scrub_prep set MDT failloc to 0x198. It prevents the inserting of osd_obj to OI, and brokes the logic of osd_fid_lookup. The creating and searching quota slv file could happen during this failloc. osd_fid_lookup() returned osd object with oo_inode equal to zero and a bit later, osd_index_try got BUG cause it tried to access to &LDISKFS_I(inode)->i_es_lock. The patch adds OST object creation for quota synchronization before setting failloc. Test-Parameters: trivial testlist=sanity-scrub Signed-off-by: Alexander Boyko Cray-bug-id: LUS-6051 Change-Id: I8a37c476c2c95b235b0f0ecc7ec1ab0066ae3883 Reviewed-on: https://review.whamcloud.com/33750 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Andriy Skulysh Reviewed-by: Oleg Drokin --- lustre/tests/sanity-scrub.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity-scrub.sh b/lustre/tests/sanity-scrub.sh index b248d95..ffff7a0 100644 --- a/lustre/tests/sanity-scrub.sh +++ b/lustre/tests/sanity-scrub.sh @@ -106,8 +106,10 @@ scrub_prep() { error "Failed to copy files to mds$n" mkdir -p $DIR/$tdir/mds$n/d_$tfile || error "mkdir failed on mds$n" - createmany -m $DIR/$tdir/mds$n/d_$tfile/f 2 > \ + touch $DIR/$tdir/mds$n/d_$tfile/f1 > \ /dev/null || error "create failed on mds$n" + dd if=/dev/zero of=$DIR/$tdir/mds$n/d_$tfile/f2 bs=1M count=1 || + error "write failed on mds$n" if [[ $nfiles -gt 0 ]]; then createmany -m $DIR/$tdir/mds$n/$tfile $nfiles > \ /dev/null || error "createmany failed on mds$n" -- 1.8.3.1