linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Support for applications which need NFS or CIFS "share_deny" flags on open
@ 2008-12-02 16:31 Steve French
  2008-12-02 19:38 ` Andreas Dilger
  0 siblings, 1 reply; 8+ messages in thread
From: Steve French @ 2008-12-02 16:31 UTC (permalink / raw)
  To: linux-fsdevel, LKML, linux-cifs-client@lists.samba.org

Some of the Wine community posted last month to the cifs mailing list
asking about a change needed for Wine for working properly over
network mounts, but the change is not really cifs specific and would
help other file systems as well so I wanted to mention it here.   The
original post was:
http://marc.info/?l=linux-cifs-client&m=122505569315992&w=2

Support for the flags they suggest would be easy for cifs (the
protocol has a field for this, and cifs clients on various other OS
set it), and should be fairly easy for NFSv4 (the RFC for NFSv4
specifies the "share_deny" field within the NFS open request, and
various clients, but not Linux, set it), and would allow WINE to
function properly over a network mount.

>we proffer to add into the file /usr/include/asm-generic/fcntl.h
> following flags:
>
>#define O_DENYREAD      004000000 /* Do not permit read access */
>#define O_DENYWRITE     010000000 /* Do not permit write access */
>#define O_DENYDELETE  020000000 /* Do not permit delete or rename
> operations*/

Presumably for applications on local mounts, wine mediates their own
mandatory locks, but this is impossible on network mounts without this
change (and can lead to data corruption).

-- 
Thanks,

Steve

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

end of thread, other threads:[~2008-12-02 23:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 16:31 Support for applications which need NFS or CIFS "share_deny" flags on open Steve French
2008-12-02 19:38 ` Andreas Dilger
2008-12-02 20:06   ` Jamie Lokier
2008-12-02 20:20     ` Steve French
2008-12-02 20:21       ` Steve French
2008-12-02 21:20       ` jim owens
2008-12-02 21:26         ` Steve French
2008-12-02 23:07   ` Jeremy Allison

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).