1 |
charliebrady |
1.2 |
diff -ruN anaconda-13.21.215/storage/devices.py.orig anaconda-13.21.215/storage/devices.py |
2 |
|
|
--- anaconda-13.21.215/storage/devices.py.orig 2014-01-02 09:58:16.798914618 -0500 |
3 |
|
|
+++ anaconda-13.21.215/storage/devices.py 2014-01-02 09:58:16.818914522 -0500 |
4 |
|
|
@@ -1880,7 +1880,7 @@ |
5 |
wellsi |
1.1 |
|
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 |
charliebrady |
1.2 |
@@ -2250,6 +2250,11 @@ |
14 |
wellsi |
1.1 |
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 |
|
|
|