[PATCH] geom: Don't check if partition is inside the disk.

Richard Jones rjones at redhat.com
Tue Sep 14 14:07:52 UTC 2010


---
 libparted/cs/geom.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/libparted/cs/geom.c b/libparted/cs/geom.c
index 636a966..aa7c3dc 100644
--- a/libparted/cs/geom.c
+++ b/libparted/cs/geom.c
@@ -163,13 +163,6 @@ ped_geometry_set (PedGeometry* geom, PedSector start, PedSector length)
                           " (start sector=%jd length=%jd)"), start, length);
 		return 0;
 	}
-	if (start < 0 || start + length - 1 >= geom->dev->length) {
-		ped_exception_throw (
-			PED_EXCEPTION_ERROR,
-			PED_EXCEPTION_CANCEL,
-			_("Can't have a partition outside the disk!"));
-		return 0;
- 	}
 
 	geom->start = start;
 	geom->length = length;
-- 
1.7.1


--gBBFr7Ir9EOA20Yy--



More information about the parted-devel mailing list