1 |
diff -ruN anaconda-13.21.195.upstream/storage/devices.py updates/storage/devices.py |
2 |
--- anaconda-13.21.195.upstream/storage/devices.py 2012-12-10 15:40:04.000000000 -0800 |
3 |
+++ updates/storage/devices.py 2013-12-02 20:19:32.000000000 -0800 |
4 |
@@ -1879,7 +1879,7 @@ |
5 |
|
6 |
# TODO: validate peSize if given |
7 |
if not self.peSize: |
8 |
- self.peSize = 4.0 # MB |
9 |
+ self.peSize = 32.0 # MB |
10 |
|
11 |
if not self.exists: |
12 |
self.pvCount = len(self.parents) |
13 |
@@ -2249,6 +2249,11 @@ |
14 |
used = sum(lv.vgSpaceUsed for lv in self.lvs) + self.snapshotSpace |
15 |
used += self.reservedSpace |
16 |
free = self.size - used |
17 |
+ |
18 |
+ pad = self.peSize * 2 * len(self.pvs) |
19 |
+ if free >= pad: |
20 |
+ free -= pad |
21 |
+ |
22 |
log.debug("vg %s has %dMB free" % (self.name, free)) |
23 |
return free |
24 |
|
25 |
|