[PATCH 1/8] Let users set the size property of StorageDevices.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For resize operations, we need the ability to set a new size for
the StorageDevice before performing the resize.
---
 storage/devices.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 678ed62..2f4b1e9 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -530,11 +530,10 @@ class StorageDevice(Device):
 
     def _setSize(self, newsize):
         """ Set the device's size to a new value. """
-        # FIXME: this should involve some verification
         self._size = newsize
 
     size = property(lambda x: x._getSize(),
-                    #lambda x, y: x._setSize(y),
+                    lambda x, y: x._setSize(y),
                     doc="The device's size, accounting for pending changes")
 
     @property
-- 
1.6.1.3

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux