Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   Disable partition resize support for DASD labels (#605912) (http://www.linux-archive.org/ubuntu-user/481617-disable-partition-resize-support-dasd-labels-605912-a.html)

David Cantrell 01-26-2011 09:28 PM

Disable partition resize support for DASD labels (#605912)
 
This just doesn't work and I have no idea when it will work in the
future, so we should just prevent users from trying this. Such a narrow
use case.
---
storage/devices.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 61082be..9695470 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -590,6 +590,9 @@ class StorageDevice(Device):
@property
def resizable(self):
""" Can this type of device be resized? """
+ if hasattr(self, "disk") and self.disk and self.disk.type == 'dasd':
+ return False
+
return self._resizable and self.exists and
((self.format and self.format.resizable) or not self.format)

--
1.7.3.5

_______________________________________________
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 03:27 AM.

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