[parted-devel] [PATCH] cs/constraint.c: do not omit last sector when creating full-dev geometry
Petr Uzel
petr.uzel at suse.cz
Tue May 31 13:23:26 UTC 2011
Note that ped_constraint_solve_max() is currently not used anywhere.
* libparted/cs/constraint.c (ped_constraint_solve_max): full_dev now
really represents whole device.
Signed-off-by: Petr Uzel <petr.uzel at suse.cz>
---
libparted/cs/constraint.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libparted/cs/constraint.c b/libparted/cs/constraint.c
index e0f4c4d..1dad3ed 100644
--- a/libparted/cs/constraint.c
+++ b/libparted/cs/constraint.c
@@ -449,7 +449,7 @@ ped_constraint_solve_max (const PedConstraint* constraint)
if (!constraint)
return NULL;
dev = constraint->start_range->dev;
- ped_geometry_init (&full_dev, dev, 0, dev->length - 1);
+ ped_geometry_init (&full_dev, dev, 0, dev->length);
return ped_constraint_solve_nearest (constraint, &full_dev);
}
--
1.7.3.4
Petr
--
Petr Uzel
IRC: ptr_uzl @ freenode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20110531/822cac0b/attachment.pgp>
More information about the parted-devel
mailing list