grub-devel
[Top][All Lists]
Advanced

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

Re: iterate return values


From: Yoshinori K. Okuji
Subject: Re: iterate return values
Date: Sun, 23 Jan 2005 21:26:49 +0100
User-agent: KMail/1.7.1

On Sunday 23 January 2005 20:53, Hollis Blanchard wrote:
> I think "is this partition type present" is a very reasonable API to
> support...

Then, the filesystem also must have a function for "if this file is 
present". This is overkill.

> What is the alternative? How would you distinguish between an iterate
> error (like "wrong partition map type") and a hook returning 1?

So I said that iterate functions should not return non-zero on errors. 
They should return zero instead. Then, you can check if it was because 
of an error or not.

Okuji




reply via email to

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