ceph: noacl mount option is effectively ignored
authorXiubo Li <xiubli@redhat.com>
Tue, 11 Feb 2020 06:53:16 +0000 (01:53 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 11 Feb 2020 16:04:40 +0000 (17:04 +0100)
commit3b20bc2fe4c0cfd82d35838965dc7ff0b93415c6
treebd9ad82aad4cf946faa3709f7654e2bbe8c791d6
parentb27a939e8376a3f1ed09b9c33ef44d20f18ec3d0
ceph: noacl mount option is effectively ignored

For the old mount API, the module parameters parseing function will
be called in ceph_mount() and also just after the default posix acl
flag set, so we can control to enable/disable it via the mount option.

But for the new mount API, it will call the module parameters
parseing function before ceph_get_tree(), so the posix acl will always
be enabled.

Fixes: 82995cc6c5ae ("libceph, rbd, ceph: convert to use the new mount API")
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/super.c