Whamcloud - gitweb
LU-13417 test: add mkdir_on_mdt0()
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 28 Apr 2021 14:36:24 +0000 (22:36 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 4 Aug 2021 17:10:56 +0000 (17:10 +0000)
commit09d4f0977e3f32fbe3eb852145f1dbb3bf2d49be
treeaec0a716ac5c65851be8c705c4a71e973264fe2d
parente49a446fd41b46e6909b87074d859ca74a22d0ee
LU-13417 test: add mkdir_on_mdt0()

Once default LMV is set on ROOT, and default stripe offset is "-1",
mkdir may not create directory on MDT0, but it's a premise for many
tests. Add a function mkdir_on_mdt0() to create directory on MDT0
by "lfs mkdir -i 0".

Replace mkdir with mkdir_on_mdt0() for such tests in sanity.sh and
sanityn.sh.

Lustre-change: https://review.whamcloud.com/43489
Lustre-commit: 54fb8458db0bff4fdfe42ba7476de3129d7606cd

Test-Parameters: trivial testlist=sanityn
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I6155d036e6b28153d0bdbdbc01088bd68ee9e0af
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44460
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity.sh
lustre/tests/sanityn.sh
lustre/tests/test-framework.sh