Whamcloud - gitweb
EX-5128 pcc: avoid to specify attach ID for every pin
authorQian Yingjin <qian@ddn.com>
Thu, 21 Apr 2022 08:23:16 +0000 (04:23 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 25 Apr 2022 23:41:55 +0000 (23:41 +0000)
commit53b6437250b4959c0229f9d6325c1a7cf78c4576
tree464e58428eda3ae028b01f06e546aff0abfd9482
parentdd2c91c92756f37019aee709174d66aa85a65e38
EX-5128 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_205.

Change-Id: I04e2b3d9ca360ae40f3723d7cd9bd78b22602123
Signed-off-by: Qian Yingjin <qian@ddn.com>
Reviewed-on: https://review.whamcloud.com/47105
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Feng, Lei <flei@whamcloud.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