Whamcloud - gitweb
LU-17251 osp: force precreate if create_count grows 68/52968/4
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 3 Nov 2023 00:32:44 +0000 (18:32 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 3 Nov 2023 10:27:17 +0000 (10:27 +0000)
commit0206ef4d765aca3f298e24dd630f155114781986
tree604e800116d260648bd7411b0cb13fcedd9a6404
parent9938228dc7e708fd8af93f12d3684f88701a4e5d
LU-17251 osp: force precreate if create_count grows

Force the MDS to precreate OST objects if "osp.*.create_count" is
written and the OSP does not have at least that many precreated
objects locally.  This avoids doing complex operations in test
scripts to force precreation to run, which slows down the tests
and increases the chance that a test might fail.

Previously opd_precreate_force was only used for handling OSTs
that were reformatted and this reset "create_count" to minimum, so
move that to the reformat case rather than in the precreate code
path so it does not reset "create_count" when it was just set.

Remove the "env" argument from several precreate-related functions,
since it wasn't used in those functions, and that made it difficult
to call them from the "create_count" parameter handling.

Test-Parameters: testlist=parallel-scale env=ONLY=test_rr_alloc
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Iac35c1b981fcd6ab2d1ea5abc9ffe2e4563ebbe5
lustre/osp/lproc_osp.c
lustre/osp/osp_internal.h
lustre/osp/osp_object.c
lustre/osp/osp_precreate.c