[gnome-disk-utility] Refine handling of overlapping partitions
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Refine handling of overlapping partitions
- Date: Wed, 18 Jul 2012 16:02:39 +0000 (UTC)
commit 1aa76222afd0b8407f1714f35ee66f5f3bbaf251
Author: David Zeuthen <zeuthen gmail com>
Date: Sun Jul 15 10:04:46 2012 -0400
Refine handling of overlapping partitions
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/disks/gduvolumegrid.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/disks/gduvolumegrid.c b/src/disks/gduvolumegrid.c
index 07202ec..fe455a5 100644
--- a/src/disks/gduvolumegrid.c
+++ b/src/disks/gduvolumegrid.c
@@ -1180,11 +1180,12 @@ recompute_grid_add_partitions (GduVolumeGrid *grid,
begin = udisks_partition_get_offset (partition);
size = udisks_partition_get_size (partition);
- end = begin + size;
if (begin < prev_end)
begin = prev_end;
+ end = begin + size;
+
if (begin - prev_end > free_space_slack)
{
element = g_new0 (GridElement, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]