Whamcloud - gitweb
EX-5113 utils: add pcc pin/unpin commands
authorLei Feng <flei@whamcloud.com>
Tue, 19 Apr 2022 00:32:47 +0000 (20:32 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 25 Apr 2022 23:41:45 +0000 (23:41 +0000)
commitdd2c91c92756f37019aee709174d66aa85a65e38
treea2df35c878bcb91e67a216c06e5af2f4db502464
parent767352e61840d3f9ad3a56dad2797f129e47f0e4
EX-5113 utils: add pcc pin/unpin commands

Store pin information in xattr trusted.pin.
Add lfs pcc pin/unpin commands to set/clear pcc pin flag.
A pcc-pinned file will not be removed from local storage
cache by lpcc_purge automatically.

Examples of xattr trusted.pin:
trusted.pin=[hsm: 2]
trusted.pin=[hsm: 2,hsm: 3]

Change-Id: I17ddf5ac8dc4eae48c0f6bdd0f2a19240474b0f5
Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial testlist=sanity-pcc
Reviewed-on: https://review.whamcloud.com/47083
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/doc/lfs-pcc-pin.1 [new file with mode: 0644]
lustre/doc/lfs-pcc-unpin.1 [new file with mode: 0644]
lustre/include/lustre/lustreapi.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/tests/sanity-pcc.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi_pcc.c