Skip to content

Commit

Permalink
- adapted to minor space calculation fix in libstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Oct 17, 2013
1 parent 5d8dc1e commit f490a3d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/modules/StorageProposal.rb
Expand Up @@ -5043,7 +5043,7 @@ def did_remove_vg(partitions, vg)

def sizek_to_pe(pek, pebyte, pvcreate)
ret = Ops.divide(
Ops.subtract(pek, pvcreate ? 500 : 0),
Ops.subtract(pek, pvcreate ? 4000 : 0),
Ops.divide(pebyte, 1024)
)
Builtins.y2milestone(
Expand Down
2 changes: 1 addition & 1 deletion testsuite/tests/empty3.out
@@ -1,6 +1,6 @@
Dump Proposal:
Dump Create boot volume /dev/sda1 (400.06 MB) with ext4
Dump Create volume /dev/sda2 (29.96 GB)
Dump Create volume group system (29.96 GB) from /dev/sda2 [destructive]
Dump Create volume group system (29.95 GB) from /dev/sda2 [destructive]
Dump Create logical volume /dev/system/root (10.00 GB) for / with ext4
Dump Create swap logical volume /dev/system/swap (512.00 MB)
4 changes: 2 additions & 2 deletions testsuite/tests/empty4.out
@@ -1,7 +1,7 @@
Dump Proposal:
Dump Create boot volume /dev/sda1 (400.06 MB) with ext4
Dump Create volume /dev/sda2 (29.96 GB)
Dump Create volume group system (29.96 GB) from /dev/sda2 [destructive]
Dump Create logical volume /dev/system/home (19.46 GB) for /home with ext4
Dump Create volume group system (29.95 GB) from /dev/sda2 [destructive]
Dump Create logical volume /dev/system/home (19.45 GB) for /home with ext4
Dump Create logical volume /dev/system/root (10.00 GB) for / with ext4
Dump Create swap logical volume /dev/system/swap (512.00 MB)
2 changes: 1 addition & 1 deletion testsuite/tests/empty5.out
@@ -1,6 +1,6 @@
Dump Proposal:
Dump Create boot volume /dev/sda1 (400.06 MB) with ext4
Dump Create volume /dev/sda2 (297.70 GB)
Dump Create volume group system (297.70 GB) from /dev/sda2 [destructive]
Dump Create volume group system (297.69 GB) from /dev/sda2 [destructive]
Dump Create logical volume /dev/system/root (10.00 GB) for / with ext4
Dump Create swap logical volume /dev/system/swap (768.00 MB)
2 changes: 1 addition & 1 deletion testsuite/tests/empty6.out
@@ -1,7 +1,7 @@
Dump Proposal:
Dump Create boot volume /dev/sda1 (400.06 MB) with ext4
Dump Create volume /dev/sda2 (297.70 GB)
Dump Create volume group system (297.70 GB) from /dev/sda2 [destructive]
Dump Create volume group system (297.69 GB) from /dev/sda2 [destructive]
Dump Create logical volume /dev/system/home (25.00 GB) for /home with ext4
Dump Create logical volume /dev/system/root (10.00 GB) for / with ext4
Dump Create swap logical volume /dev/system/swap (768.00 MB)

0 comments on commit f490a3d

Please sign in to comment.