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>
Showing
- lnet/utils/lnetconfig/cyaml.c 67 additions, 39 deletionslnet/utils/lnetconfig/cyaml.c
- lnet/utils/lnetconfig/cyaml.h 10 additions, 2 deletionslnet/utils/lnetconfig/cyaml.h
- lustre/tests/sanity-hsm.sh 7 additions, 4 deletionslustre/tests/sanity-hsm.sh
- lustre/tests/sanity-pcc.sh 19 additions, 15 deletionslustre/tests/sanity-pcc.sh
- lustre/tests/test-framework.sh 23 additions, 12 deletionslustre/tests/test-framework.sh
- lustre/utils/Makefile.am 2 additions, 1 deletionlustre/utils/Makefile.am
- lustre/utils/lhsmtool_posix.c 462 additions, 49 deletionslustre/utils/lhsmtool_posix.c
Loading