Whamcloud - gitweb
EX-4006 pcc: make "pccro=1" default
authorQian Yingjin <qian@ddn.com>
Fri, 8 Oct 2021 08:45:05 +0000 (16:45 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 11 Oct 2021 05:28:51 +0000 (05:28 +0000)
commit69594ef7cdbea81114901266ac5076923cb02bf8
tree5c7db80e054a30dff4a0b82941ff199f7acfda09
parent063bb7b33ebe8df95b2449f01e314cbaa7e0ce91
EX-4006 pcc: make "pccro=1" default

To avoid a risk that users will accidentally configure PCC-RW and
potentially lose data if those client nodes go offline, this patch
makes "pccro=1" default for PCC backends.

This patch adds a new option "--w|--write" for PCC-RW cache
mode when attach a file.
Also It makes "--r|--readonly" as a default option for PCC attach
command.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I56735b0ebe8f0d9ef22b3f7e39e8cccfa3aad443
Reviewed-on: https://review.whamcloud.com/45162
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/pcc.c
lustre/llite/pcc.h
lustre/tests/sanity-pcc.sh
lustre/utils/lfs.c