Re: Question: NFS behaviour in case of concurrent local and remote access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2009-11-09 at 14:42 +0200, Ivan Yosifov wrote:
> Hi everyone,
> 
> I'm new to NFS and am trying to understand how to use it safely and
> correctly.
> 
> The situation I'm considering is following. There's a server with an
> ( ext4 if it matters ) local volume that's exported through NFSv4. There
> are expected to be both remote ( ie. over the NFS ) read/write clients
> and local ones that write to the volume directly ( ie. not thorough the
> NFS ).
> 
> Assuming well-behaved clients, ie. no interleaved open()...close() on
> the same file, how will NFS handle this ? Will close-to-open consistency
> continue to work, will it interfere with delegations ?
> 
> Pointers or thoughts greatly appreciated.

The NFS expectation is that if one application is writing to a file
while another is holding it open, then the two applications will use
locking in order to synchronise their access.

As long as all applications adhere to this rule, then you are supposed
to be guaranteed cache consistency. It shouldn't matter if the
applications are running on the server or on another client.

Cheers
   Trond

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux