Date: Wed, 31 Dec 2008 14:16:10 -0500 (EST) From: Rick Macklem <rmacklem@uoguelph.ca> To: Bryan Alves <bryanalves@gmail.com> Cc: freebsd-fs@freebsd.org Subject: Re: NFS locking problems with 7.0-RELEASE Message-ID: <Pine.GSO.4.63.0812311407390.19285@muncher.cs.uoguelph.ca> In-Reply-To: <92f477740812301246k7ed77511oc969c22a3b5aad4d@mail.gmail.com> References: <92f477740812291739o7c0b840bsd1cce4375577c41f@mail.gmail.com> <Pine.GSO.4.63.0812301356360.17823@muncher.cs.uoguelph.ca> <92f477740812301246k7ed77511oc969c22a3b5aad4d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 30 Dec 2008, Bryan Alves wrote: >> - Download my server patches (ftp.cis.uoguelph.ca/pub/nfsv4/FreeBSD7) and >> switch to using nfsv4, which has integral locking in the protocol. >> >> Have a good holiday, rick >> >> > Is there another location where I can get the nfs4 patches? That FTP seems > to be down. > Seems to be working here. Just "ftp ftp.cis.uoguelph.ca", login "anonymous", then "cd pub/nfsv4/FreeBSD7". (Is it that you can't find the machine? It's IP# is 131.104.48.112.) > Also, outside the scope of this list, but since the discussion is opened, I > might as well ask: > > If this NFS is the only remote mount that involves writing (it's opened > read-only in other locations), and it's read/write locally, is it safe to > use local locking? > Yes, I believe so. Even if there are multiple clients rw mounting a file system, local locking should be fine unless there are multiple clients writing the same file in the file system. (With a single writer and multiple readers, an application might run into coherency problems if that application was written to use byte range locking to maintain coherency (ie. most recently written data visible to the readers), but that seems unlikely to matter for most applications/environments. (And I'm not sure if the NLM is wired into NFS is such a way as to maintain full coherency for the locked byte ranges anyhow, since normally NFS does not maintain full coherency?) Have a happy new years, rick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.63.0812311407390.19285>