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

Re: [PATCH 4/7] Add a default size of 500MB for new partition requests.



Ack.

On 02/05/2010 08:07 AM, David Lehman wrote:
---
  storage/devices.py |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index fa7ab4f..b6628a6 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -948,6 +948,9 @@ class PartitionDevice(StorageDevice):
              # XXX It might be worthwhile to create a shit-simple
              #     PartitionRequest class and pass one to this constructor
              #     for new partitions.
+            if not self._size:
+                # default size for new partition requests
+                self._size = 500
              self.req_name = name
              self.req_partType = partType
              self.req_primary = primary


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