]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6fbe64f23b9435e8ed9e211d1395ae7e670a0bff
tree469e60c8275ecedde1c3b417a0e4d09ea22aca44
parent28b6695a7a3b83aff0a731661bbf79ab9dbb3e59
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