linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NFSv4x share reservations support
@ 2020-12-17 12:30 Suresh Jayaraman
  2020-12-17 14:57 ` Frank Filz
  0 siblings, 1 reply; 2+ messages in thread
From: Suresh Jayaraman @ 2020-12-17 12:30 UTC (permalink / raw)
  To: linux-nfs

Hi all,

Does Linux NFS server disallow OPENs from SMB or local filesystem when a DENY_READ/DENY_WRITE (share reservation) is set on a file? If so, how is it implemented (with VFS flags)?

The packet captures show that the Linux NFS4x clients always OPEN with DENY_NONE (as there is no POSIX support for DENY_READ/DENY_WRITE). Looked at https://linux-nfs.org/wiki/index.php/Cluster_Coherent_NFSv4_and_Share_Reservations but was not sure if it uptodate. 

Would like to understand what level of share reservations support is present in Linux NFS server today.

Thanks,
Suresh

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: NFSv4x share reservations support
  2020-12-17 12:30 NFSv4x share reservations support Suresh Jayaraman
@ 2020-12-17 14:57 ` Frank Filz
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Filz @ 2020-12-17 14:57 UTC (permalink / raw)
  To: 'Suresh Jayaraman', linux-nfs

> Does Linux NFS server disallow OPENs from SMB or local filesystem when a
> DENY_READ/DENY_WRITE (share reservation) is set on a file? If so, how is
it
> implemented (with VFS flags)?
> 
> The packet captures show that the Linux NFS4x clients always OPEN with
> DENY_NONE (as there is no POSIX support for DENY_READ/DENY_WRITE).
> Looked at https://linux-
> nfs.org/wiki/index.php/Cluster_Coherent_NFSv4_and_Share_Reservations but
> was not sure if it uptodate.
> 
> Would like to understand what level of share reservations support is
present in
> Linux NFS server today.

Since the Linux vfs layer has no way to represent deny modes, there is no
way for a Linux remote file system such as knfsd or Samba to coordinate on
deny reservations. There was a patch set years ago that would have added
deny modes to the Linux open system call, but it never got enough support to
be merged.

The only way to accomplish this is to either have a file system that
implements deny modes with some kind of out of band means for applications
and servers to communicate (such as an fcntl call) or for remote file system
servers to coordinate in the background. There are proprietary out of tree
file systems that provide this coordination, but nothing in tree to my
knowledge (if there is, please let me know, nfs-ganesha COULD utilize such
an out of band mechanism).

Frank


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-17 14:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 12:30 NFSv4x share reservations support Suresh Jayaraman
2020-12-17 14:57 ` Frank Filz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).