bug-parted
[Top][All Lists]
Advanced

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

Re: [patch] initializing parted from an application


From: Neal H Walfield
Subject: Re: [patch] initializing parted from an application
Date: Thu, 16 Aug 2001 00:37:49 +0200
User-agent: Mutt/1.3.18i

On Thu, Aug 16, 2001 at 07:48:17AM +1000, Andrew Clausen wrote:
> On Wed, Aug 15, 2001 at 10:55:24PM +0200, Neal H Walfield wrote:
> > Thus, I see two things that parted can do:  It can either use the gcc
> > constructor/destructor extension or it can allow nested calls to the
> > ped_init/ped_done routines.  Personally, I prefer the former.
> 
> Is it possible to do ld magic to dynamically load/unload libparted?
> If, say RH use libparted in their installer, can they get rid of it
> after they've finished with partitioning?

Do you mean dlopen and family?

> Also, an exception might be thrown during initialization... there would
> be no way to set the exception handler before initialization.  So,
> the vanilla default handler (writes to stdout) would have to do.

As initialization is really about allocating a few data strutures, I do
not think that this is an issue.  But, if you want to look at
pathological cases, sure, you have a point.

> The only exceptions that should be thrown are bugs, or possibly errors
> loading modules, so that should be no problem...

Right.

Attachment: pgptPIX8AHrXC.pgp
Description: PGP signature


reply via email to

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