fuse: move option checking into fuse_fill_super()
authorMiklos Szeredi <mszeredi@redhat.com>
Wed, 4 Aug 2021 11:22:58 +0000 (13:22 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 4 Aug 2021 11:22:58 +0000 (13:22 +0200)
commitbadc741459f42f51e244533ce1df1cd9ac5ac6d7
tree469e60c8275ecedde1c3b417a0e4d09ea22aca44
parent84c215075b5723ab946708a6c74c26bd3c51114c
fuse: move option checking into fuse_fill_super()

Checking whether the "fd=", "rootmode=", "user_id=" and "group_id=" mount
options are present can be moved from fuse_get_tree() into
fuse_fill_super() where the value of the options are consumed.

This relaxes semantics of reusing a fuse blockdev mount using the device
name.  Before this patch presence of these options were enforced but values
ignored, after this patch these options are completely ignored in this
case.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/inode.c