File libparted-allow-even-bigger-snap-radius-if-cylinders-are-used.patch of Package parted.3440

---
 libparted/unit.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: parted-3.1/libparted/unit.c
===================================================================
--- parted-3.1.orig/libparted/unit.c
+++ parted-3.1/libparted/unit.c
@@ -541,7 +541,8 @@ ped_unit_parse_custom (const char* str,
 
 	unit_size = ped_unit_get_size (dev, unit);
 	if (unit == PED_UNIT_CYLINDER)
-		radius = ped_div_round_up (unit_size, dev->sector_size) - 1;
+		/* XXX: disgusting hack because of bnc#914852 */
+		radius = ped_div_round_up (unit_size * 3, dev->sector_size) - 1;
 	else
 		radius = (ped_div_round_up (unit_size, dev->sector_size) / 2) - 1;
 	if (radius < 0)
openSUSE Build Service is sponsored by