All of lore.kernel.org
 help / color / mirror / Atom feed
* Provision for filesystem specific open flags
@ 2017-11-10 16:49 Fu, Rodney
  2017-11-10 17:23 ` hch
  0 siblings, 1 reply; 20+ messages in thread
From: Fu, Rodney @ 2017-11-10 16:49 UTC (permalink / raw)
  To: hch, viro; +Cc: linux-fsdevel

Hello,

With,

commit 59724793983177d1b51c8cdd0134326977a1cabc
Author: Christoph Hellwig <hch@lst.de>
Date:   Thu Apr 27 09:42:25 2017 +0200

    fs: completely ignore unknown open flags
    
    [ Upstream commit 629e014bb8349fcf7c1e4df19a842652ece1c945 ]
    
    Currently we just stash anything we got into file->f_flags, and the
    report it in fcntl(F_GETFD).  This patch just clears out all unknown
    flags so that we don't pass them to the fs or report them.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: Sasha Levin <alexander.levin@verizon.com>

and,

commit 666d1fc2023eee3bf723c764eeeabb21d71a11f2
Author: Christoph Hellwig <hch@lst.de>
Date:   Thu Apr 27 09:42:24 2017 +0200

    fs: add a VALID_OPEN_FLAGS
    
    [ Upstream commit 80f18379a7c350c011d30332658aa15fe49a8fa5 ]
    
    Add a central define for all valid open flags, and use it in the uniqueness
    check.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: Sasha Levin <alexander.levin@verizon.com>

The kernel prevents unknown open flags from being passed through to the 
underlying filesystem.  I am wondering if people would be for or against the 
idea of provisioning some number of bits in the open flags that are opaque to 
the VFS layer but get passed down to the underlying filesystem?  The motivation 
would be to allow filesystem specific semantics to be controllable via open, 
much like the more generic and pre-existing open flags.

Thanks,
Rodney Fu

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

end of thread, other threads:[~2017-12-05 21:36 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-10 16:49 Provision for filesystem specific open flags Fu, Rodney
2017-11-10 17:23 ` hch
2017-11-10 17:39   ` Fu, Rodney
2017-11-10 19:29     ` Matthew Wilcox
2017-11-10 21:04       ` Fu, Rodney
2017-11-11  0:37         ` Matthew Wilcox
2017-11-13 15:16           ` Fu, Rodney
2017-11-20 13:38             ` Jeff Layton
2017-11-13  0:48         ` Dave Chinner
2017-11-13 17:02           ` Fu, Rodney
2017-11-13 21:58             ` Dave Chinner
2017-11-14 17:35               ` Fu, Rodney
2017-11-20 13:53                 ` Jeff Layton
2017-11-20 13:53                   ` Jeff Layton
2017-12-04  5:29                 ` NeilBrown
2017-12-05 21:36                   ` Andreas Dilger
2017-11-13 17:45         ` Bernd Schubert
2017-11-13 20:19           ` Fu, Rodney
2017-11-20 14:03             ` Florian Weimer
2017-11-20 14:03               ` Florian Weimer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.