Whamcloud - gitweb
EX-2579 pcc: support a flatter HSM archive format
authorQian Yingjin <qian@ddn.com>
Thu, 29 Apr 2021 13:10:05 +0000 (21:10 +0800)
committerLi Xi <lixi@ddn.com>
Sat, 5 Jun 2021 15:42:36 +0000 (15:42 +0000)
commit74fdd196f7a27008127e8395ed61df75d6189dd7
treeba3646727be9c68894a47280be2f64e39064414e
parentd590681945d846118061a4c93e25553b25b052c2
EX-2579 pcc: support a flatter HSM archive format

Add versioning (v1 and V2) to the HSM (PCC) 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.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: If660f3cf4c02469bb23e65a44f86f0346367adf6
Reviewed-on: https://review.whamcloud.com/43493
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Feng, Lei <flei@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/pcc.c
lustre/llite/pcc.h
lustre/tests/sanity-pcc.sh
lustre/utils/libhsm_scanner.c