public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Karel Zak <kzak@redhat.com>
To: Nikos Skalkotos <skalkoto@grnet.gr>
Cc: util-linux@vger.kernel.org, synnefo-devel@googlegroups.com
Subject: Re: Support for the new OpenBSD disklabel format
Date: Tue, 10 Dec 2013 11:32:08 +0100	[thread overview]
Message-ID: <20131210103208.GA8419@x2.net.home> (raw)
In-Reply-To: <529CC1AE.9090006@grnet.gr>

On Mon, Dec 02, 2013 at 07:21:50PM +0200, Nikos Skalkotos wrote:
> Besides the python tool I've written, for a more permanent solution, I'm
> considering patching libfdisk to support the OpenBSD disklabel. I wanted
> to know if you are interested for those patches. I think the best way to
> do it is to split the disklabel parts that have changed into different
> structs and use unions to create a disklabel struct that will work both
> for NetBSD and OpenBSD. What do you think?

I'm just doing some invasive changes to the library -- it would be
probably better to wait to January to avoid some collisions and extra
work. 

We also have some very simple partitions table parser in libblkid
(see libblkid/src/partitions/, mostly dos.c for nested partition tables). It
would be nice to extend this partition table parser too.

Don't forget to send some test image with the new BSD disklabel! :-)

> If this works out, I'd be happy to create python bindings for libfdisk
> (like the ones you have for libmount) as a later step. I know that the
> API is not currently stable, but most parts seem OK.

It's probably too early, the API is not stable at all, maybe later in 
next year. 

Anyway, python binding is wanted -- we already have binding for
libmount, Ondrej promised binding for libblkid, so binding for
libfdisk would be excellent thing!

Now the library is good enough for dialogs driven interfaces (like
fdisk), but it's necessary to improve it for programs like cfdisk and
sfdisk. Now I'm working on new cfdisk.

    Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

  reply	other threads:[~2013-12-10 10:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-02 17:21 Support for the new OpenBSD disklabel format Nikos Skalkotos
2013-12-10 10:32 ` Karel Zak [this message]
2013-12-13 10:48   ` Nikos Skalkotos
2013-12-13 11:45     ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131210103208.GA8419@x2.net.home \
    --to=kzak@redhat.com \
    --cc=skalkoto@grnet.gr \
    --cc=synnefo-devel@googlegroups.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox