]> www.infradead.org Git - users/willy/linux.git/commit
vfs: Introduce the basic header for the new mount API's filesystem context
authorDavid Howells <dhowells@redhat.com>
Tue, 11 Sep 2018 21:20:53 +0000 (22:20 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 23 Oct 2018 16:38:56 +0000 (17:38 +0100)
commitc87c47c34750e9ee1ff0345593f3cbf6726b9d4e
tree935c8bf38ceccc47e0a1db871b0983283bef16d8
parentaf9eb1fffa12bc2e052b1342505e65542e61e86c
vfs: Introduce the basic header for the new mount API's filesystem context

Introduce a filesystem context concept to be used during superblock
creation for mount and superblock reconfiguration for remount.  This is
allocated at the beginning of the mount procedure and into it is placed:

 (1) Filesystem type.

 (2) Namespaces.

 (3) Source/Device names (there may be multiple).

 (4) Superblock flags (SB_*).

 (5) Security details.

 (6) Filesystem-specific data, as set by the mount options.

Also introduce a struct for typed key=value parameter concept with which
configuration data will be passed to filesystems.  This will allow not only
for ordinary string values, but also make it possible to pass more exotic
values such as binary blobs, paths and fds with greater ease.

Signed-off-by: David Howells <dhowells@redhat.com>
include/linux/fs_context.h [new file with mode: 0644]