FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Desktop

 
 
LinkBack Thread Tools
 
Old 11-11-2009, 08:47 AM
Martin Sivak
 
Default Report no media present for cpqarray controllers with no disks attached

Ack.

----- "Hans de Goede" <hdegoede@redhat.com> wrote:

> Some drivers (cpqarray <blegh>) make block device nodes for
> controllers with no disks attached and then report a 0 size,
> treat this as no media present.
> ---
> storage/devices.py | 8 +++++++-
> 1 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/storage/devices.py b/storage/devices.py
> index 5049765..5a74dfa 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -747,7 +747,13 @@ class DiskDevice(StorageDevice):
>
> @property
> def mediaPresent(self):
> - return self.partedDevice is not None
> + if not self.partedDevice:
> + return False
> +
> + # Some drivers (cpqarray <blegh>) make block device nodes
> for
> + # controllers with no disks attached and then report a 0
> size,
> + # treat this as no media present
> + return self.partedDevice.getSize() != 0
>
> @property
> def model(self):
> --
> 1.6.5.2
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org