From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Csorn-0005FS-TU for mharc-grub-devel@gnu.org; Sun, 23 Jan 2005 16:01:51 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Csom6-0004B0-MZ for grub-devel@gnu.org; Sun, 23 Jan 2005 15:56:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Csolt-00045X-1h for grub-devel@gnu.org; Sun, 23 Jan 2005 15:55:45 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Csols-0003zY-Pe for grub-devel@gnu.org; Sun, 23 Jan 2005 15:55:44 -0500 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CsoJV-0002P2-OG for grub-devel@gnu.org; Sun, 23 Jan 2005 15:26:25 -0500 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 3D633F8E2948 for ; Sun, 23 Jan 2005 21:26:25 +0100 (CET) Received: from 127.0.0.1 ([127.0.0.1] helo=localhost) by ASSP-nospam ; 23 Jan 05 20:26:25 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Sun, 23 Jan 2005 21:26:49 +0100 User-Agent: KMail/1.7.1 References: <20050123182336.GA31323@miracle> <200501232019.58638.okuji@enbug.org> <80E32375-6D78-11D9-A7B9-000A95A0560C@penguinppc.org> In-Reply-To: <80E32375-6D78-11D9-A7B9-000A95A0560C@penguinppc.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501232126.49553.okuji@enbug.org> Subject: Re: iterate return values X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 21:01:50 -0000 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