From 1ed47a27ca12264650c40585c0042800e1f33640 Mon Sep 17 00:00:00 2001 From: Andrea Tomassetti Date: Wed, 30 Mar 2022 11:14:23 +0200 Subject: [PATCH] Add 'wi' (Write-Invalidate) as valid cache mode Signed-off-by: Andrea Tomassetti --- utils/opencas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/opencas.py b/utils/opencas.py index f3ae11256..7cd5a1a34 100644 --- a/utils/opencas.py +++ b/utils/opencas.py @@ -292,7 +292,7 @@ def check_cache_device_empty(self): ) def check_cache_mode_valid(self, cache_mode): - if cache_mode not in ['wt', 'pt', 'wa', 'wb', 'wo']: + if cache_mode not in ['wt', 'pt', 'wa', 'wb', 'wo', 'wi']: raise ValueError(f'Invalid cache mode {cache_mode}') def check_cleaning_policy_valid(self, cleaning_policy):