From a208fd4682900b050bf502568f70137dcf2f61c7 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Mon, 23 Sep 2019 13:29:54 -0400 Subject: [PATCH 1/2] Add WO cache mode in man page Signed-off-by: Adam Rutkowski --- utils/casadm.8 | 2 +- utils/opencas.conf.5 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/casadm.8 b/utils/casadm.8 index d7a6f54..54b39e4 100644 --- a/utils/casadm.8 +++ b/utils/casadm.8 @@ -423,7 +423,7 @@ Defines output format for parameter list. It can be either \fBtable\fR (default) .SH Options that are valid with --set-cache-mode (-Q) are: .TP -.B -c, --cache-mode {wt|wb|wa|pt} +.B -c, --cache-mode {wt|wb|wa|pt|wo} Cache mode to be used with a given cache instance. Available modes: diff --git a/utils/opencas.conf.5 b/utils/opencas.conf.5 index 776e3ff..4a993da 100644 --- a/utils/opencas.conf.5 +++ b/utils/opencas.conf.5 @@ -22,7 +22,7 @@ Cache ID <1-16384> .br Cache device .br -Cache mode {wt|wb|wa|pt} +Cache mode {wt|wb|wa|pt|wo} .br Extra fields (optional) ioclass_file=,cleaning_policy=,promotion_policy= .RE From 1b31aed691480609d0f8532f1d27eaab14431c06 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Mon, 23 Sep 2019 13:31:38 -0400 Subject: [PATCH 2/2] Remove reference to flush progress in casadm -L The functionality of displaying flush progress in caches list was removed. Updating casadm user message to reflect this. Signed-off-by: Adam Rutkowski --- casadm/cas_lib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/casadm/cas_lib.c b/casadm/cas_lib.c index 6a497c3..7c91725 100644 --- a/casadm/cas_lib.c +++ b/casadm/cas_lib.c @@ -1112,8 +1112,7 @@ int set_cache_mode(unsigned int cache_mode, unsigned int cache_id, int flush) } else { cas_printf(LOG_INFO, "CAS is currently migrating from %s to %s mode.\n" "Dirty data are being flushed to primary storage device in background.\n" - "Please find flushing progress via list caches command (‘casadm -L’) or\n" - "via statistics command (‘casadm -P’).\n", + "Please find flushing progress via statistics command (‘casadm -P’).\n", cache_mode_to_name_long(orig_mode), cache_mode_to_name_long(cache_mode)); }