Whamcloud - gitweb
EX-3752 pcc: show attaching state for PCC state output
authorQian Yingjin <qian@ddn.com>
Mon, 6 Sep 2021 07:51:55 +0000 (15:51 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 8 Sep 2021 17:48:32 +0000 (17:48 +0000)
commit85b743b3bfbedc90efe221183063f2ae48bc11df
treefe06d58abd447842287622c51649e12fc126892b
parentcdeec9eec9414ce49615071423602c203d9514ca
EX-3752 pcc: show attaching state for PCC state output

When set llite.*.pcc_async_threshold=0, the client will do PCC
attach in asynchronous way.
When the file is large, attaching the file into PCC may take some
time.
In this patch, we improve that output of the PCC command
"lfs pcc state" to show that the file is in PCC attaching state
when the file is still in the phase of copying from Lustre OSTs
to PCC.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I101d87638f5afac41fb4f55b4aaf95d938bc8ccd
Reviewed-on: https://review.whamcloud.com/44852
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/pcc.c
lustre/utils/lfs.c