bug-parted
[Top][All Lists]
Advanced

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

Re: ped_partition_new


From: Andrew Clausen
Subject: Re: ped_partition_new
Date: Wed, 18 Oct 2000 05:58:35 +1100

Stephane BRANGER wrote:
> 
> Ops sorry .... here's the config file:
> 
> I found out some pbs because when commenting the exception, I get the 
> following
> messages:
> 
> This is for swap:
> 
> Warning: This swap partition is not compatible with Linux version 2.1.117 or 
> earlier.
> Use a smaller partition (maximum size 128mb) if you want to use old versions
> of Linux.
> 
> This is for fat:
> Warning: The kernel was unable to re-read the partition table on /dev/sda 
> (Périphérique ou ressource occupé).
> This means Linux knows nothing about any modifications you made.  You should
> reboot your computer before doing anything with /dev/sda.
> 
> But now after commenting "ped_exception_set_handler(exception_handler);" it
> works fine excepted for swap.

Exceptions != errors

Just because your exception handler is called, doesn't mean the world
is going to explode in your face.

The idea of exceptions is to allow users (or automated programs) to
respond to certain events.  For example: a user might want to use
a swap partition with Linux 2.0.  So, the user should be given an
opportunity to cancel an operation, when confronted with this
information.

The exception handler can return ANY option that is on the ex->options
bit field, or PED_EXCEPTION_UNHANDLED.  So, it's your choice...

Hint: the ex->type field might give you a hint.  If it's
PED_EXCEPTION_INFORMATION or PED_EXCEPTION_WARNING, you don't need
to take the exception particularly seriously...

Andrew Clausen



reply via email to

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