zpool and zfs checks do not print noise anymore

This commit is contained in:
Martin Berghaus
2025-03-12 22:59:32 +01:00
parent 3d1ecf6fa8
commit 64d6a350c0
4 changed files with 6 additions and 6 deletions

View File

@@ -8,6 +8,6 @@ _CURRENT_POOL='zpool1'
#Set with: 'zfs set atime=off zpool1' #Set with: 'zfs set atime=off zpool1'
zfs version &> /dev/null \ zfs version &> /dev/null \
&& [ "$(zfs get atime -Ho value ${_CURRENT_POOL})" == "off" ] \ && [ "$(zfs get atime -Ho value ${_CURRENT_POOL} 2> /dev/null)" == "off" ] \
&& exit 0 && exit 0
exit 1 exit 1

View File

@@ -7,6 +7,6 @@ _CURRENT_POOL='zpool1'
#Set with: 'zfs set compression=lz4 zpool1' #Set with: 'zfs set compression=lz4 zpool1'
zfs version &> /dev/null \ zfs version &> /dev/null \
&& [ "$(zfs get compression -Ho value ${_CURRENT_POOL})" == "lz4" ] \ && [ "$(zfs get compression -Ho value ${_CURRENT_POOL} 2> /dev/null)" == "lz4" ] \
&& exit 0 && exit 0
exit 1 exit 1

View File

@@ -6,7 +6,7 @@ _CURRENT_ZFS='zpool1'
#retrieve the property 'mountpoint' from 'zpool1', without header and compare the result with '/zpool1' #retrieve the property 'mountpoint' from 'zpool1', without header and compare the result with '/zpool1'
#Set with: 'zfs set mountpount=default' #Set with: 'zfs set mountpount=default'
zfs version &> /dev/null \ zfs version &> /dev/null \
&& [ "$(zfs get mountpoint -Ho value ${_CURRENT_ZFS})" == "/${_CURRENT_ZFS}" ] \ && [ "$(zfs get mountpoint -Ho value ${_CURRENT_ZFS} 2> /dev/null)" == "/${_CURRENT_ZFS}" ] \
&& exit 0 && exit 0
exit 1 exit 1

View File

@@ -4,7 +4,7 @@ _CURRENT_POOL='zpool1'
#Check if the tool 'zpool' is available, then #Check if the tool 'zpool' is available, then
#retrieve the property 'ashift' from 'zpool1', without header and compare the result with '12' #retrieve the property 'ashift' from 'zpool1', without header and compare the result with '12'
zpool version &> /dev/null \ zpool version &> /dev/null \
&& [ "$(zpool get ashift -Ho value ${_CURRENT_POOL})" == "12" ] \ && [ "$(zpool get ashift -Ho value ${_CURRENT_POOL} 2> /dev/null)" == "12" ] \
&& exit 0 && exit 0
exit 1 exit 1