Package: sysconfig-hardware Version: 0.0.10 Severity: wishlist The Debian version of sysconfig-hardware has no support for the DASD options. For example, when configuring a DASD device via the dasd parameter passed to the dasd_mod module, I can specify options such as "diag" (to request that the dasd_diag_mod driver be used) or "ro" (to tell the driver that the DASD device is to be treated as a read-only device). Here is a sample configuration file called /etc/modprobe.d/dasd.conf:
options dasd_mod dasd=0.0.0200(diag),0.0.0201,0.0.0202(ro),0.0.0203(diag:ro) softdep dasd_eckd_mod pre: dasd_diag_mod softdep dasd_fba_mod pre: dasd_diag_mod The above file specifies that device numbers 0200 and 0203 are to use the dasd_diag_mod driver and that device numbers 0202 and 0203 are to be treated as read-only devices. By contrast, a DASD device configured via sysconfig-hardware cannot specify either of these options. Adding support for this is both useful and trivial. I suggest the following patch file be applied to /etc/sysconfig/scripts/hardware/hwup-ccw-dasd: ----- --- hwup-ccw-dasd-old 2008-07-04 09:29:02.000000000 -0400 +++ hwup-ccw-dasd 2011-03-29 08:57:28.000000000 -0400 @@ -17,6 +17,18 @@ if test "$_online" -eq "1" ; then message "already online." else + [ -z "$DASD_USE_DIAG" ] && DASD_USE_DIAG=0 + if [ "$DASD_USE_DIAG" = "1" ]; then + echo 1 > $SYSFS$DEVPATH/use_diag + else + echo 0 > $SYSFS$DEVPATH/use_diag + fi + [ -z "$DASD_READONLY" ] && DASD_READONLY=0 + if [ "$DASD_READONLY" = "1" ]; then + echo 1 > $SYSFS$DEVPATH/readonly + else + echo 0 > $SYSFS$DEVPATH/readonly + fi echo 1 > $SYSFS$DEVPATH/online message "ok. " fi ----- Once this patch is applied, the DASD devices listed in the first example can be configured as follows: /etc/sysconfig/hardware/config-ccw-0.0.0200: DASD_USE_DIAG=1 /etc/sysconfig/hardware/config-ccw-0.0.0201: (zero-length file created by "touch") /etc/sysconfig/hardware/config-ccw-0.0.0202: DASD_READONLY=1 /etc/sysconfig/hardware/config-ccw-0.0.0203: DASD_USE_DIAG=1 DASD_READONLY=1 DASD_USE_DIAG has been used by other Linux distributions, such as Suse Linux Enterprise Server (SLES). DASD_READONLY, as far as I can tell, has not been used in other distributions; but it seems logical to me to support both, since both can be specified via the dasd parameter passed to the dasd_mod module. -- .''`. Stephen Powell : :' : `. `'` `- -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

