[parted-devel] Interface to set partition type
Jim Meyering
jim at meyering.net
Tue Dec 8 15:27:26 UTC 2009
Robert Millan wrote:
> On Wed, Nov 11, 2009 at 10:09:37AM +0100, Jim Meyering wrote:
>> Håkon Løvdal wrote:
>>
>> > 2009/11/9 Karel Zak <kzak at redhat.com>:
>> >> On Mon, Nov 09, 2009 at 11:17:58AM +0100, Jim Meyering wrote:
>> >>> It seems like it'd be useful to be able to extract existing types,
>> >>> too, so how about making the string argument optional.
>> >>> Then, this would print the type of the first partition:
>> >>>
>> >>> $ parted /dev/sda part-type 1
>
> Internally, Parted uses the "type" name to refer to another sort of
> partition type (enum { primary, extended, etc}) whose semantics are
> incompatible with the intended command.
Hi,
Good point.
How about calling the thing these new commands will be
changing/printing a partition-ID?
Good to hear you're still working on this.
> This is reflected in definitions such as command_line_get_part_type()
> or PedPartitionType.
>
> Should my patch replace this interface altogether? Should one of them
> be renamed instead? If so, which one?
More information about the parted-devel
mailing list