From b338b8c1a7a5442a02c67aa40c22b1c77b2b5925 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 15 Apr 2021 11:03:36 +0200 Subject: [slx-dmsetup] Handle "always" --- modules.d/slx-dmsetup/scripts/dmsetup-slx-device | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules.d/slx-dmsetup/scripts/dmsetup-slx-device b/modules.d/slx-dmsetup/scripts/dmsetup-slx-device index 8ec27b44..b8d26e0d 100755 --- a/modules.d/slx-dmsetup/scripts/dmsetup-slx-device +++ b/modules.d/slx-dmsetup/scripts/dmsetup-slx-device @@ -415,8 +415,9 @@ create_pool() { # is less than 100GB, and only then consider this feature. # Maybe make that thresold configurable one day, but the the desktop client # use case this is sensible for now. - if [ "$SLX_NTFSFREE" = "backup" ] && (( scratch_device_sz < 209715200 )) \ - && [ -z "$metadata_persistent" ]; then + # TODO: always should be handled differently, but do the same for now + if [[ "$SLX_NTFSFREE" = "backup" || "$SLX_NTFSFREE" = "always" ]] \ + && (( scratch_device_sz < 209715200 )) && [ -z "$metadata_persistent" ]; then find_ntfs_partitions if [ -s "$ntfs_list" ]; then # Look what size we end up if we want at least 50GB -- cgit v1.2.3-55-g7522