Whamcloud - gitweb
LU-14359 hsm: support a flatter HSM archive format
authorJohn L. Hammond <jhammond@whamcloud.com>
Fri, 22 Jan 2021 16:56:06 +0000 (10:56 -0600)
committerLi Xi <lixi@ddn.com>
Sat, 5 Jun 2021 14:15:43 +0000 (14:15 +0000)
commitd590681945d846118061a4c93e25553b25b052c2
treee2d392dbf9cf9fdbf9c1c6109c759cbf6029947a
parentb638297f2c06a0d861dfcd1263e0d7187103068a
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.

Lustre-change: https://review.whamcloud.com/41312
Lustre-commit: 65062463199fa76b6313e9452e3ab9590cbedaa2

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I6d6bd0c8817a491848b554fa76078d876549cc1f
Reviewed-on: https://review.whamcloud.com/43490
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.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