Whamcloud - gitweb
EX-3409 pcc: add owner capacity check for open attach
authorQian Yingjin <qian@ddn.com>
Thu, 1 Jul 2021 07:49:58 +0000 (15:49 +0800)
committerLi Xi <lixi@ddn.com>
Tue, 20 Jul 2021 14:29:50 +0000 (14:29 +0000)
commit7cce3772e267afee328d63da9367875c63e6ad43
tree91357aed4bf999c2030d81ca038f580a4f9259eb
parentdc0d26d058c57469ec52ea3f13077f6fab418dce
EX-3409 pcc: add owner capacity check for open attach

This patch adds owner and capacity check when try to auto attach
at the open() time.
Add sanity-pcc test_43.

For the command "lfs pcc attach_fid", make it more convenient by
the way that the parameter "-m" is not mandatory required when
specifying the mount point.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: Icb8cbddb64c5712e2db970120b06fc1a0216c332
Reviewed-on: https://review.whamcloud.com/44123
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Feng, Lei <flei@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
lustre/llite/pcc.c
lustre/tests/sanity-pcc.sh
lustre/utils/lfs.c