Whamcloud - gitweb
LU-13417 test: add mkdir_on_mdt0() 89/43489/7
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 28 Apr 2021 14:36:24 +0000 (22:36 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 30 Jun 2021 03:15:44 +0000 (03:15 +0000)
commit54fb8458db0bff4fdfe42ba7476de3129d7606cd
treedae79ccf283e91f373e39726a20e9d41b65ca987
parent72c9a6e5fb6e11fca1b1438ac18f58ff7849ed7d
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.

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