mirror of
https://github.com/m8tin/cis.git
synced 2025-12-06 07:48:26 +01:00
zpool and zfs checks do not print noise anymore
This commit is contained in:
@@ -8,6 +8,6 @@ _CURRENT_POOL='zpool1'
|
||||
|
||||
#Set with: 'zfs set atime=off zpool1'
|
||||
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 1
|
||||
|
||||
@@ -7,6 +7,6 @@ _CURRENT_POOL='zpool1'
|
||||
|
||||
#Set with: 'zfs set compression=lz4 zpool1'
|
||||
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 1
|
||||
|
||||
@@ -7,6 +7,6 @@ _CURRENT_ZFS='zpool1'
|
||||
|
||||
#Set with: 'zfs set mountpount=default'
|
||||
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 1
|
||||
|
||||
@@ -5,6 +5,6 @@ _CURRENT_POOL='zpool1'
|
||||
#Check if the tool 'zpool' is available, then
|
||||
#retrieve the property 'ashift' from 'zpool1', without header and compare the result with '12'
|
||||
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 1
|
||||
|
||||
Reference in New Issue
Block a user