From: Dan Yocum Subject: Re: Null characters in files on NFS mounted volume.... Date: Tue, 14 May 2002 14:03:12 -0500 Sender: nfs-admin@lists.sourceforge.net Message-ID: <3CE15F70.7C8B8433@fnal.gov> References: <200205141734.g4EHYnT32724@buggy.badula.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: nfs@lists.sourceforge.net Return-path: Received: from heffalump.fnal.gov ([131.225.9.20] helo=fnal.gov) by usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 177hZp-0006Lg-00 for ; Tue, 14 May 2002 12:03:13 -0700 Received: from fnal.gov ([131.225.7.82]) by smtp.fnal.gov (PMDF V6.0-24 #37519) with ESMTP id <0GW400F4R7LCY3@smtp.fnal.gov> for nfs@lists.sourceforge.net; Tue, 14 May 2002 14:03:12 -0500 (CDT) To: Ion Badulescu Errors-To: nfs-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Unsubscribe: , List-Archive: Ion, The apps are apache and plain old 'less,' so I bet they just use read(). And the problem hasn't cropped up again (yet) and hadn't cropped up in ~1 year with older kernels (specifically 2.4.5). I just upgraded to 2.4.18 last Thursday when it did start. I'll change the options to hard and see if that makes any changes. Thanks, Dan Ion Badulescu wrote: > > On Tue, 14 May 2002 09:41:39 -0500, Dan Yocum wrote: > >> > This is an intermitent problem: When attempting to read a file (any file) > >> > on an NFS mounted volume, there appear to be "holes" in the file filled with > >> > ASCII NULL characters. Reading the file on the local machines shows no such > >> > holes, and other NFS clients don't see the holes, either. A simple > >> > umount/remount solves the problem. > >> > > Neil Brown wrote: > >> You wouldn't be using 'soft' mounts would you? > > > > yup, automounted with these options: > > > > -rw,grpid,soft,intr,quota,nodev,nosuid,timeo=10,retrans=3 > > In that case let me ask you this: is your application checking the return > code of the read()? or are you using mmap() instead of read()? > > If read() returns zero-filled buffers without signalling an errors, it's > a problem in the NFS client. That is, assumming it's not some bad interaction > between XFS and the NFS server -- so try to clear up that possibility > by mounting with the hard option. > > If you're using mmap(), then I don't even know how the system should tell > you about the problem... I suppose it would be sending a SIGSEGV or SIGBUS > signal, since it's ultimately a failing page fault, but I haven't tested it. > > > I suppose they could be hard.... I'll think about that. > > Yes, they _should_ be hard if you care about your data integrity. > > But that shouldn't stop us from fixing bugs in the 'soft' model, if they > exist... which is why I'm asking you all these details. :-) > > Ion > > -- > It is better to keep your mouth shut and be thought a fool, > than to open it and remove all doubt. -- Dan Yocum Sloan Digital Sky Survey, Fermilab 630.840.6509 yocum@fnal.gov, http://www.sdss.org SDSS. Mapping the Universe. _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs