Comment 8 for bug 2046082

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Testing for Mantic:

mantic-updates:

 $ rmadison -a source zfs-linux -s mantic-updates
  zfs-linux | 2.2.0-0ubuntu1~23.10 | mantic-updates | source

 $ dpkg -s zfs-zed | grep Version:
 Version: 2.2.0-0ubuntu1~23.10

 $ grep ZED_POWER_OFF_ENCLO /etc/zfs/zed.d/zed.rc
 #ZED_POWER_OFF_ENCLOUSRE_SLOT_ON_FAULT=1

 $ dpkg -L zfs-zed | xargs grep ZED_POWER_OFF_ENCLOUSRE_SLOT_ON_FAULT 2>/dev/null | sort
 /etc/zfs/zed.d/zed.rc:#ZED_POWER_OFF_ENCLOUSRE_SLOT_ON_FAULT=1
 /usr/lib/zfs-linux/zed.d/statechange-slot_off.sh:# 2: ZED_POWER_OFF_ENCLOUSRE_SLOT_ON_FAULT disabled
 /usr/lib/zfs-linux/zed.d/statechange-slot_off.sh:# ZED_POWER_OFF_ENCLOUSRE_SLOT_ON_FAULT is set in zed.rc, and the disk gets
 /usr/lib/zfs-linux/zed.d/statechange-slot_off.sh:if [ "${ZED_POWER_OFF_ENCLOUSRE_SLOT_ON_FAULT}" != "1" ] ; then

test package:

 $ dpkg-deb -x zfs-zed_2.2.0-0ubuntu1~23.10.1_amd64.deb deb

 $ grep ZED_POWER_OFF_ENCLO deb/etc/zfs/zed.d/zed.rc
 #ZED_POWER_OFF_ENCLOSURE_SLOT_ON_FAULT=1

- wrong name (no matches anymore):

 $ find deb | xargs grep ZED_POWER_OFF_ENCLOUSRE_SLOT_ON_FAULT 2>/dev/null
 $

- right name (all matches fixed):

 $ find deb | xargs grep ZED_POWER_OFF_ENCLOSURE_SLOT_ON_FAULT 2>/dev/null | sort
 deb/etc/zfs/zed.d/zed.rc:#ZED_POWER_OFF_ENCLOSURE_SLOT_ON_FAULT=1
 deb/usr/lib/zfs-linux/zed.d/statechange-slot_off.sh:# 2: ZED_POWER_OFF_ENCLOSURE_SLOT_ON_FAULT disabled
 deb/usr/lib/zfs-linux/zed.d/statechange-slot_off.sh:# ZED_POWER_OFF_ENCLOSURE_SLOT_ON_FAULT is set in zed.rc, and the disk gets
 deb/usr/lib/zfs-linux/zed.d/statechange-slot_off.sh:if [ "${ZED_POWER_OFF_ENCLOSURE_SLOT_ON_FAULT}" != "1" ] ; then