Whamcloud - gitweb
LU-10499 pcc: avoid to specify attach ID for every pin 61/54461/5
authorQian Yingjin <qian@ddn.com>
Thu, 21 Apr 2022 08:23:16 +0000 (04:23 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Jan 2025 18:41:13 +0000 (18:41 +0000)
commitabc39d438bff3d16618b22b5c4da312c2fc29892
tree9c63c34fd417e23863780d261420b9e179a636ac
parent642009da4e03a7f56694a368a7e4ea3584428e02
LU-10499 pcc: avoid to specify attach ID for every pin

In this patch, it avoids the need to specify "-i <attach_id>" for
every pin/unpin operation as in the very common case there is only
a single cache for that client.
If attach ID is not specified, it will select the first dataset
on the client as PCC backend.

Add the test case: sanity-pcc test_204b.

EX-bug-id: EX-5128
Change-Id: I04e2b3d9ca360ae40f3723d7cd9bd78b22602123
Signed-off-by: Qian Yingjin <qian@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54461
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Feng Lei <flei@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/doc/lfs-pcc-attach.1
lustre/doc/lfs-pcc-pin.1
lustre/include/lustre/lustreapi.h
lustre/tests/sanity-pcc.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi_pcc.c