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

Re: [Libguestfs] Error with part-add with bsd partition

On Sun, Apr 10, 2011 at 07:35:59PM +0400, Nikita A Menkovich wrote:
> Hello,I receive strange error
> ><fs> part-init /dev/vda bsd
> ><fs> part-add /dev/vda primary 64 -1
> libguestfs: error: part_add: do_part_add: parted: /dev/vda: parted:
> invalid token: primary
> Error: Expecting a file system type.

Yes, this is basically a bug.  A bug in parted in fact, but one which
we shouldn't be exposing through the API.  If you have a look here
it'll become more clear:


(particularly the comment at line 149).

We intend to write a partition handling library which is not insane
(ie. unlike parted/libparted).  Unfortunately we haven't got around to
it yet :-(

Please file a bug in Bugzilla or send a patch if you can see an easy


Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)

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