[parted-devel] [PATCH] fix alignment error on DOS disk labels

David Cantrell dcantrell at redhat.com
Mon Apr 23 20:06:54 UTC 2007


commit 09cb0886369f113139ee1725dac0d850e9c734ad
Author: David Cantrell <dcantrel at mortise.boston.redhat.com>
Date:   Mon Apr 23 16:02:13 2007 -0400

    Fix primary partition cylinder alignment error for DOS disk labels.

diff --git a/libparted/labels/dos.c b/libparted/labels/dos.c
index 8e7707e..50fadfd 100644
--- a/libparted/labels/dos.c
+++ b/libparted/labels/dos.c
@@ -1696,8 +1696,7 @@ _align_primary (PedPartition* part, const
PedCHSGeometry* bios_geom,
 					 _primary_start_constraint (disk, part,
 						 bios_geom, min_geom)));
 
-	if (!solution)
-		solution = _best_solution (part, bios_geom, solution,
+	solution = _best_solution (part, bios_geom, solution,
 			_try_constraint (part, constraint,
 				_primary_constraint (disk, bios_geom,
 				min_geom)));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20070423/1a99729b/attachment.pgp


More information about the parted-devel mailing list