Whamcloud - gitweb
EX-8027 pcc: add wait option when remove a PCC backend
authorQian Yingjin <qian@ddn.com>
Tue, 15 Aug 2023 08:54:54 +0000 (04:54 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 28 Aug 2023 16:19:31 +0000 (16:19 +0000)
commit06b44fda8c64900c050a42f895257a5cee0e8388
treef3176646de35f6d51f2c32466b6cb2280a600b88
parent68b86348c518aa341b57a839d747da753ee9131c
EX-8027 pcc: add wait option when remove a PCC backend

In this patch, we add a "wait" option for the PCC tool when remove
PCC backend from a client:
lctl pcc del --wait $MOUNT $pcc_path
lctl pcc clear --wait $MOUNT

With this option, the caller must wait for all in-progress
attaches finished when remove the PCC backend from a client.

Change-Id: Ic8386329087a7129b0583fa823cbb50673893d0d
Signed-off-by: Qian Yingjin <qian@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51944
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/doc/lctl-pcc.8
lustre/doc/llapi_pcc_del.3
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/pcc.c
lustre/llite/pcc.h
lustre/tests/sanity-pcc.sh
lustre/utils/liblustreapi_pcc.c
lustre/utils/obd.c