Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   Remove setting of _isDisk and _partitionable from iscsi and fcoe disk code (http://www.linux-archive.org/debian-user/313207-remove-setting-_isdisk-_partitionable-iscsi-fcoe-disk-code.html)

Hans de Goede 01-22-2010 08:24 AM

Remove setting of _isDisk and _partitionable from iscsi and fcoe disk code
 
They already enherit the correct values from DiskDevice, and setting
them explictly is inconsisten with ZFCPDevice and DASDDevice which do not
do this.
---
storage/devices.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 52e0466..42b0fdf 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -3288,8 +3288,6 @@ class iScsiDiskDevice(DiskDevice, NetworkStorageDevice):
""" An iSCSI disk. """
_type = "iscsi"
_packages = ["iscsi-initiator-utils", "dracut-network"]
- _partitionable = True
- _isDisk = True

def __init__(self, device, **kwargs):
self.node = kwargs.pop("node")
@@ -3322,8 +3320,6 @@ class FcoeDiskDevice(DiskDevice, NetworkStorageDevice):
""" An FCoE disk. """
_type = "fcoe"
_packages = ["fcoe-utils", "dracut-network"]
- _partitionable = True
- _isDisk = True

def __init__(self, device, **kwargs):
self.nic = kwargs.pop("nic")
--
1.6.5.2

_______________________________________________
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 07:31 PM.

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