[parted-devel] Interface to set partition type
Robert Millan
rmh at aybabtu.com
Fri Dec 4 23:51:36 UTC 2009
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
Hi,
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.
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?
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
More information about the parted-devel
mailing list