Whamcloud - gitweb
EX-8236 pcc: abort data copy when clear PCC backend
authorQian Yingjin <qian@ddn.com>
Fri, 8 Dec 2023 09:15:17 +0000 (04:15 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 12 Dec 2023 05:39:33 +0000 (05:39 +0000)
commit962e21f4c55be454aac00fd5c7b461eb55509a4c
tree8d9c0e65e2257fbaf70efc65dc13a492c51f51b3
parent78e27532a9a259fe3e13dd8292c564c571367671
EX-8236 pcc: abort data copy when clear PCC backend

This patch adds an option "--abort" for "lctl pcc del|clear"
command tools.
With this option, the user will first set ATTACH_ABORTING flag on
all in-progress attaching files, and then wait for them to abort
the attache when remove a PCC backend from a client.

Add sanity-pcc/test_108 to verify it.

Change-Id: I4e2f3ec8866e9af45f4524a9f45ee418ef4cb5be
Signed-off-by: Qian Yingjin <qian@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53373
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/obd_support.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/pcc.c
lustre/tests/sanity-pcc.sh
lustre/utils/liblustreapi_pcc.c
lustre/utils/obd.c