Convert coda to use the new mount API
authorDavid Howells <dhowells@redhat.com>
Wed, 21 Feb 2024 15:40:03 +0000 (09:40 -0600)
committerChristian Brauner <brauner@kernel.org>
Thu, 22 Feb 2024 09:03:38 +0000 (10:03 +0100)
commit5916f439f2eb81eef98703b9a8f1dc91e3aa7129
tree42e5f43a9208afa7029d5b7e97f9facbca39ca0e
parent0611a640e60a0473883328746f3c53934cd4dc3c
Convert coda to use the new mount API

Convert the coda filesystem to the new internal mount API as the old
one will be obsoleted and removed.  This allows greater flexibility in
communication of mount parameters between userspace, the VFS and the
filesystem.

See Documentation/filesystems/mount_api.rst for more information.

Note this is slightly tricky as coda currently only has a binary mount data
interface.  This is handled through the parse_monolithic hook.

Also add a more conventional interface with a parameter named "fd" that
takes an fd that refers to a coda psdev, thereby specifying the index to
use.

Signed-off-by: David Howells <dhowells@redhat.com>
Co-developed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
[sandeen: forward port to current upstream mount API interfaces]
Link: https://lore.kernel.org/r/97650eeb-94c7-4041-b58c-90e81e76b699@redhat.com
Tested-by: Jan Harkes <jaharkes@cs.cmu.edu>
Reviewed-by: Ian Kent <raven@themaw.net>
cc: coda@cs.cmu.edu
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/coda/inode.c