Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   Use isys.removableDriveDict() for exceptionDisks. (http://www.linux-archive.org/ubuntu-user/13348-use-isys-removabledrivedict-exceptiondisks.html)

Bill Nottingham 12-05-2007 10:24 PM

Use isys.removableDriveDict() for exceptionDisks.
 
---
partedUtils.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/partedUtils.py b/partedUtils.py
index 9e47788..b5bec5a 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -1342,10 +1342,8 @@ class DiskSet:
self.refreshDevices()
isys.flushDriveDict()

- drives = isys.floppyDriveDict().items()
-
- for d in isys.hardDriveDict().items():
- if isys.driveUsesModule(d[0], ["usb-storage", "ub", "sbp2", "firewire-sbp2"]):
+ drives = []
+ for d in isys.removableDriveDict().items():
func = lambda p: not p.get_flag(parted.PARTITION_RAID) and not p.get_flag(parted.PARTITION_LVM) and p.fs_type.name in ["ext3", "ext2", "vfat"]

disk = self.disks[d[0]]
--
1.5.3.4

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


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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.