Whamcloud - gitweb
EX-6373 pcc: asynchronous PCCRO attach command support
authorQian Yingjin <qian@ddn.com>
Fri, 11 Nov 2022 09:01:02 +0000 (04:01 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 6 Dec 2022 04:56:11 +0000 (04:56 +0000)
commitab6bdf0fc76adc94403686826a5d657391ffcd20
tree7f6cb06f881f9241588284096a4bc849ee3ecc0c
parentc8be6fafce0ed74ea3a8d6d41387bd6d1a8e215b
EX-6373 pcc: asynchronous PCCRO attach command support

Currently PCCRO attach via the command "lfs pcc attach" will block
during the data copying.
There is a requirement that this command can also do data copy
asynchronously. Thus we add an option "--async|-A" to the command
which will not block while the file data is being fetched.

Add sanity-pcc/test_{103, 104} to verify that it works correctly.

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