From: "Bryan J. Smith" Subject: Re: Corrupt Data when using NFS on Linux -- This should be in the HOWTO Date: Tue, 29 Oct 2002 12:20:13 -0500 (EST) Sender: nfs-admin@lists.sourceforge.net Message-ID: <1035912013.3dbec34dddd7e@webmail.smithconcepts.com> References: <6440EA1A6AA1D5118C6900902745938E07D54FE2@black.eng.netapp.com> <007601c27ed6$74986240$2864a8c0@alanw> <200210291703.g9TH3FD32594@leinie.lmcg.wisc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: Alan Witz , nfs@lists.sourceforge.net Return-path: Received: from knight.01.dios.net ([65.222.230.112] helo=taz2.fiberhosting.com) by usw-sf-list1.sourceforge.net with smtp (Exim 3.31-VA-mm2 #1 (Debian)) id 186a2P-0004zH-00 for ; Tue, 29 Oct 2002 09:20:21 -0800 To: Daniel Forrest In-Reply-To: <200210291703.g9TH3FD32594@leinie.lmcg.wisc.edu> 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: Quoting Daniel Forrest : > The "guaranteed" way to create a lock file over NFS: > create tempfile > link tempfile lockfile (ignore return code) > stat tempfile > If the link count is 2, then you have the lock file. Apparently, link > may return success even if the link failed or return failure even if > the link succeeded (I don't remember which). Doing the stat verifies > if you have actually created a link to the temporary file. I know the HOWTO is more for users/sysadmins, but stuff like this could really help in an additional "common workarounds for potential gotchas" section at the end of the HOWTO. -- Bryan J. Smith, E.I. Contact Info: http://thebs.org A+/i-Net+/Linux+/Network+/Server+ CCNA CIWA CNA SCSA/SCWSE/SCNA --------------------------------------------------------------- limit guilt = { psychopath, remorse->0 innocent } ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs