Whamcloud - gitweb
LU-14506 hsm: correct default stripe offset in import 78/41978/2
authorJohn L. Hammond <jhammond@whamcloud.com>
Wed, 10 Mar 2021 15:20:29 +0000 (09:20 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Mar 2021 04:16:40 +0000 (04:16 +0000)
commitea964031d7bdc6f31fccb7f136591b682eb35087
tree618887c1f3d04571e3012758c048dc0c68732236
parent9d347ae1d6aa642a86b710452b1978ea303dea09
LU-14506 hsm: correct default stripe offset in import

In lhsmtool_posix, when calling llapi_hsm_import(), pass a stripe
offset of -1 rather than 0 to select the default. Add sanity-hsm
test_11c() to check that a file may be imported to a directory with a
default striping specifing a pool that does not include OST0000.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I40636c0620b2f9314eb13bf23a8cf6d02990f851
Reviewed-on: https://review.whamcloud.com/41978
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
lustre/tests/sanity-hsm.sh
lustre/utils/lhsmtool_posix.c