/[smeserver]/rpms/anaconda/sme9/0008-StorageActivationFail.patch
ViewVC logotype

Contents of /rpms/anaconda/sme9/0008-StorageActivationFail.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Dec 16 03:38:13 2013 UTC (10 years, 6 months ago) by wellsi
Branch: MAIN
CVS Tags: anaconda-13_21_215-1_el6_sme_1
* Sun Dec 15 2013 Ian Wells <esmith@wellsi.com> - 13.21.215-1.el6.sme.1
- Apply SME Server specific patches [SME: 8066]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed