Whamcloud - gitweb
LU-14359 hsm: support a flatter HSM archive format 12/41312/6
authorJohn L. Hammond <jhammond@whamcloud.com>
Fri, 22 Jan 2021 16:56:06 +0000 (10:56 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 5 May 2021 02:50:00 +0000 (02:50 +0000)
commit65062463199fa76b6313e9452e3ab9590cbedaa2
treee5373f11d63a7f4a213e4224a56f55314b5ae546
parentaba940fa10195579eac0701846922547c6ad0dae
LU-14359 hsm: support a flatter HSM archive format

Add versioning (v1 and v2) to the HSM archive format (directory
layout):
  v1: (oid & 0xffff)/-/-/-/-/-/FID
  v2: ((oid ^ seq) & 0xffff)/FID

v1 is the original layout and the default. v2 is the new layout which
should be selected for new installs.

Add an option --archive-format to select the archive format.

Add YAML configuration file support to lhsmtool_posix with properties
achive_format and archive_path. Add an option --config to set the
config file.

Adapt sanity-hsm and test-framework to allow testing of both archive
formats.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I6d6bd0c8817a491848b554fa76078d876549cc1f
Reviewed-on: https://review.whamcloud.com/41312
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/utils/lnetconfig/cyaml.c
lnet/utils/lnetconfig/cyaml.h
lustre/tests/sanity-hsm.sh
lustre/tests/sanity-pcc.sh
lustre/tests/test-framework.sh
lustre/utils/Makefile.am
lustre/utils/lhsmtool_posix.c