From: "J. Bruce Fields" Subject: Re: stdio and nfs-utils Date: Wed, 25 Jul 2007 23:17:55 -0400 Message-ID: <20070726031755.GB19901@fieldses.org> References: <20070725223723.GH7943@fieldses.org> <20070726000700.GK7943@fieldses.org> <18088.3581.647761.879253@notabene.brown> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: nfs@lists.sourceforge.net To: Neil Brown Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1IDtrP-0001p6-Mz for nfs@lists.sourceforge.net; Wed, 25 Jul 2007 20:17:55 -0700 Received: from mail.fieldses.org ([66.93.2.214] helo=fieldses.org) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1IDtrR-00041D-2f for nfs@lists.sourceforge.net; Wed, 25 Jul 2007 20:17:59 -0700 In-Reply-To: <18088.3581.647761.879253@notabene.brown> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net On Thu, Jul 26, 2007 at 12:59:09PM +1000, Neil Brown wrote: > While I can see the value it avoiding the stdio code, I can also see > some in hanging on to it, so I would first like to see if we can make > the current code work with just minor modifications. > > Could you check how calling 'clearerr' interacts with this code on the > two different systems? I tried inserting a clearerr into the loop: fprintf(); fflush(); clearerr(); No change in behavior. I see the advantage to doing just one step at a time--so if we can figure out a minimal fix for now, fine. But surely we've got to replace the stdio stuff at some point. We need precise control over the writes, so the buffering can only get in the way. --b. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs