bug-parted
[Top][All Lists]
Advanced

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

Re: Bug in parted (1.4.24)


From: Andrew Clausen
Subject: Re: Bug in parted (1.4.24)
Date: Sun, 12 May 2002 16:46:51 +1000
User-agent: Mutt/1.3.28i

On Fri, May 10, 2002 at 01:07:06PM -0700, Tal Danzig wrote:
> Another question.  Using libparted, is there any way to get/set the
> partition type of a given partition.  For example I'd like to create a
> partition of type Linux or Linux swap (types 83 and 82 respectively),
> but not put any filesystem on that partition, and I'd like to be able to
> find out the type of an empty partition.

The philosophy is "partition types are bad" (ped_file_system_probe()
instead!)

Anyway, I intend to add support for this (along with the general
parameter interface I'm thinking about...)

You can sort-of set the partition type via ped_partition_set_system().
(You don't pass 83, but rather ped_file_system_type_get ("ext2")).

If you really want to access directly, there's a patch available from
Andreas Dilger (google it!).  I didn't apply it because it isn't
complete, and I'd rather interface it differently, but it should
be safe/usable for you.  (I haven't tried it though!)

Andrew




reply via email to

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