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

Re: [PATCH 7/7] Create DASDDevice objects for DASD devices when building devicetree.



Ack

On 10/08/2009 09:28 AM, David Cantrell wrote:
> When building the device tree, if the block device is a DASD, create a
> DASDDevice object rather than a DiskDevice object.
> ---
>  storage/devicetree.py |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/storage/devicetree.py b/storage/devicetree.py
> index ae0ff15..8ccbe08 100644
> --- a/storage/devicetree.py
> +++ b/storage/devicetree.py
> @@ -1170,6 +1170,9 @@ class DeviceTree(object):
>              # This needs bug #523314 fixed
>              kwargs["uuid"] = udev_device_get_md_uuid(info)
>              kwargs["exists"]  = True
> +        elif udev_device_is_dasd(info):
> +            diskType = DASDDevice
> +            log.debug("%s is a dasd device" % name)
>          else:
>              diskType = DiskDevice
>              log.debug("%s is a disk" % name)

Steffen

Linux on System z Development

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Erich Baier
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294



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