[parted-devel] Re: parted util API

leslie.polzer at gmx.net leslie.polzer at gmx.net
Sun Jun 25 12:38:23 UTC 2006


On Sat, Jun 24, 2006 at 07:36:42PM +0200, Bart Hakvoort wrote:

> better late than never ;) I've been thinking about usefull functions
> to make available and found the current API is actually quite
> complete.
I don't agree here.  I think lots of programs either copy a lot of the
do_* functions from parted.c or would like to do so.  The current API is
still not as high-level as it should be.

> There are only 2 things that come to mind right now:
>
> - nice function to calculate geometries, i was thinking about something
> along the lines of: PedGeometry* calc_geom( PedDisk *disk, PedGeometry
> *approx_geom, PedConstaint *constraint ) This would return NULL in
> case there is no solution and the correct geomemtry otherwise.
So this would probably include the functins snap_to_boundaries, snap,
prefer_snap, constraint_from_start_end,
constraint_intersect_and_destroy from parted.c.

> - a way to resize a filesystem separately from it's partition. This
> could come in handy sometimes.
I guess this is already possible; I am not sure, though.

  Apart from the things mentioned, another thing is important which also
affects GParted: a stable and well-thought API to interface with
external programs.  The addition of this to libparted would enable it to
resize a lot of file systems and interface with utilities like dd or
badblocks.  The GParted code that does this will probably become
obsolete with this.  We could work together on the specification of this
API since I'm perfectly sure you know about the requirements of it.

  Leslie

-- 
gpg --keyserver pgp.mit.edu --recv-keys 0x52D70289
http://nic-nac-project.de/~skypher/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20060625/d8039324/attachment.pgp


More information about the parted-devel mailing list