Whamcloud - gitweb
LU-10499 utils: add pcc pin/unpin commands 60/54460/7
authorLei Feng <flei@whamcloud.com>
Tue, 19 Apr 2022 00:32:47 +0000 (20:32 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 2 Jan 2025 20:46:25 +0000 (20:46 +0000)
commitaae909cf8fbc5ef3090c5385793370fa71360f42
tree7ea93e0e033f93a5f7abb8efdec11da71aebe570
parent9e37963fa05b66652610771740512971c65a47ef
LU-10499 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]

EX-bug-id: EX-5113
Change-Id: I17ddf5ac8dc4eae48c0f6bdd0f2a19240474b0f5
Signed-off-by: Lei Feng <flei@whamcloud.com>
Test-Parameters: trivial testlist=sanity-pcc
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54460
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@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