[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#801912: DASD options are ignored because device is already online



Package: sysconfig-hardware
Version: 0.0.10+nmu3
Severity: normal
X-Debbugs-CC: debian-s390@lists.debian.org
Tags: patch

The DASD options are being ignored.
The problem is in etc/sysconfig/scripts/hardware/hwup-ccw-dasd.
The DASD options can only be set *before* the device is brought online.
The script is attempting to set the DASD options *after* bringing the
device online.  Thus, the DASD options are ignored.  A patch which
fixes the problem is attached.

-- 
  .''`.     Stephen Powell    <zlinuxman@wowway.com>
 : :'  :
 `. `'`
   `-
diff -ura a/etc/sysconfig/scripts/hardware/hwup-ccw-dasd b/etc/sysconfig/scripts/hardware/hwup-ccw-dasd
--- a/etc/sysconfig/scripts/hardware/hwup-ccw-dasd	2015-09-06 03:38:33.000000000 -0400
+++ b/etc/sysconfig/scripts/hardware/hwup-ccw-dasd	2015-10-15 14:26:51.819975570 -0400
@@ -15,18 +15,17 @@
 message_n "Configuring device $ID: "
 read _online < $SYSFS$DEVPATH/online
 if [ "$_online" -ne "1" ]; then
+  if [ -n "$DASD_USE_DIAG" ]; then
+    echo "$DASD_USE_DIAG" > $SYSFS$DEVPATH/use_diag
+  fi
+  if [ -n "$DASD_READONLY" ]; then
+    echo "$DASD_READONLY" > $SYSFS$DEVPATH/readonly
+  fi
   echo 1 > $SYSFS$DEVPATH/online
   message_n "online. "
 else
   message_n "already online. "
 fi
 
-if [ -n "$DASD_USE_DIAG" ]; then
-  echo "$DASD_USE_DIAG" > $SYSFS$DEVPATH/use_diag
-fi
-if [ -n "$DASD_READONLY" ]; then
-  echo "$DASD_READONLY" > $SYSFS$DEVPATH/readonly
-fi
-
 message "ok. "
 

Reply to: