bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] fix segfault for expanded gpt


From: Matthew Kent
Subject: [patch] fix segfault for expanded gpt
Date: Wed, 28 Sep 2005 12:05:47 -0600

Hey guys, quick fix for GNU Parted 1.6.24

Upon expanding the underlying iscsi volume:

Using /dev/sdc
(parted) p
Error: The backup GPT table is not at the end of the disk, as it should
be.  This might mean that another operating system believes the disk is
smaller.
Fix, by moving the backup to the end (and removing the old backup)?
Fix/Cancel? f
Segmentation fault

Seems the problem is in ui.c:830 where PED_EXCEPTION_FIX is never
tested.

Attached one liner cures it.

On a related note, perhaps I'm approaching this the wrong way, but has
anyone had any luck in expanding a reiserfs partition in a gpt disk
label

I expand the underlying physical device and get this:

Using /dev/sdc
(parted) p
Error: The backup GPT table is not at the end of the disk, as it should
be.  This might mean that another operating system believes the disk is
smaller.
Fix, by moving the backup to the end (and removing the old backup)?
Fix/Cancel? f
Disk geometry for /dev/sdc: 0.000-1638405.000 megabytes
Disk label type: gpt
Minor    Start       End     Filesystem  Name                  Flags
1          0.017 1126409.983  reiserfs
(parted) resize 1
Start?  [0.0166]?
End?  [1126410.0000]? 1638405
Warning: You requested to resize the partition to 0.016-1638405.000Mb.
The closest Parted can manage is 0.017-1126409.983Mb.
OK/Cancel?

Since I'm new to gpt am I going about this the wrong way?

Thanks
-- 
Matthew Kent \ SA \ bravenet.com

Attachment: parted-fix_opt.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]