Merge pull request #802 from arutk/stop_error_handling

Properly handle flush error in cache stop
This commit is contained in:
Robert Baldyga
2021-04-15 18:11:47 +02:00
committed by GitHub
3 changed files with 15 additions and 17 deletions

View File

@@ -67,7 +67,7 @@ done
SHORT_LINK=$(realpath ${CACHE_DEVICE})
CACHE_DEVICE_OPTION="${CACHE_DEVICE}" turn_off_device
for ID in 1 2 3 ; do
DONT_FAIL_ON_ERROR_OPTION="YES" CACHE_ID_OPTION="$ID" stop_cache
DONT_FAIL_ON_ERROR_OPTION="YES" CACHE_DONT_FLUSH_DATA_OPTION="1" CACHE_ID_OPTION="$ID" stop_cache
done
CACHE_DEVICE_OPTION="${SHORT_LINK}" turn_on_device

View File

@@ -67,7 +67,7 @@ done
SHORT_LINK=$(realpath ${CACHE_DEVICE})
CACHE_DEVICE_OPTION="${CACHE_DEVICE}" turn_off_device
for ID in 1 2 3 ; do
DONT_FAIL_ON_ERROR_OPTION="YES" CACHE_ID_OPTION="$ID" stop_cache
DONT_FAIL_ON_ERROR_OPTION="YES" CACHE_DONT_FLUSH_DATA_OPTION="1" CACHE_ID_OPTION="$ID" stop_cache
done
CACHE_DEVICE_OPTION="${SHORT_LINK}" turn_on_device