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 Development

 
 
LinkBack Thread Tools
 
Old 01-22-2010, 08:24 AM
Hans de Goede
 
Default Remove DMRaidDevice.mediaPresent method

It is the same as the one we inherit from StorageDevice
---
storage/devices.py | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 3bae2d8..26c1a53 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2935,11 +2935,6 @@ class DMRaidArrayDevice(DMDevice):

log.debug("not tearing down dmraid device %s" % self.name)

- @property
- def mediaPresent(self):
- # Even if teared down we still want to show up in storage.disks
- return True
-
def dracutSetupString(self):
return "rd_DM_UUID=%s" % self.name

--
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-22-2010, 02:25 PM
Chris Lumens
 
Default Remove DMRaidDevice.mediaPresent method

> diff --git a/storage/devices.py b/storage/devices.py
> index 3bae2d8..26c1a53 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -2935,11 +2935,6 @@ class DMRaidArrayDevice(DMDevice):
>
> log.debug("not tearing down dmraid device %s" % self.name)
>
> - @property
> - def mediaPresent(self):
> - # Even if teared down we still want to show up in storage.disks
> - return True
> -
> def dracutSetupString(self):
> return "rd_DM_UUID=%s" % self.name

Also looks fine, though I renew my objections to using mediaPresent to
mean "displayable".

- Chris

_______________________________________________
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 10:56 AM.

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