Whamcloud - gitweb
EX-8971 pcc: add lctl pcc abort command to abort attaches
authorQian Yingjin <qian@ddn.com>
Fri, 12 Jan 2024 09:03:15 +0000 (04:03 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 18 Jan 2024 09:27:40 +0000 (09:27 +0000)
commitb5850d8fdf66888753efa67b24a6b6a2471a15f8
treee6a82763bfd8e05608e251cd95cdc3ca66a4e86d
parent66a53793e286ad113df97db57cc5137c8898f256
EX-8971 pcc: add lctl pcc abort command to abort attaches

This patch adds a new PCC command "lctl pcc abort [--wait|-w]
[--detach|-d] $LUSTRE_MNTPT $PCCROOT".
--wait|-w: wait all in-flight attaches aborted.
--detach|-d: detach the PCC copies when scan the PCC backend.

It can be used to abort in-progress attaches for a given PCC
backend. It does not remove the PCC backend from a client.

Add sanity-pcc/test_109 to verify it.

Change-Id: Ib7152f7418aa1beb840919e98bf8de53c99b5c54
Signed-off-by: Qian Yingjin <qian@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53656
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/doc/lctl-pcc-abort.8 [new file with mode: 0644]
lustre/doc/lctl-pcc.8
lustre/doc/llapi_pcc_del.3
lustre/doc/llapi_pcc_detach_fid_fd.3
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/pcc.c
lustre/tests/sanity-pcc.sh
lustre/utils/lctl.c
lustre/utils/liblustreapi_pcc.c
lustre/utils/obd.c
lustre/utils/obdctl.h