diff options
author | Yan, Zheng <zyan@redhat.com> | 2016-02-14 11:06:41 +0100 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-03-04 21:00:37 +0100 |
commit | 5ea5c5e0a7f70b256417d3b6e36bd9851504babd (patch) | |
tree | c71678dee6860e0bce59c737a3ea52f7e310e09f /fs/ceph/addr.c | |
parent | Linux 4.5-rc6 (diff) | |
download | linux-5ea5c5e0a7f70b256417d3b6e36bd9851504babd.tar.xz linux-5ea5c5e0a7f70b256417d3b6e36bd9851504babd.zip |
ceph: initial CEPH_FEATURE_FS_FILE_LAYOUT_V2 support
Add support for the format change of MClientReply/MclientCaps.
Also add code that denies access to inodes with pool_ns layouts.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'fs/ceph/addr.c')
-rw-r--r-- | fs/ceph/addr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index c22213789090..19adeb0ef82a 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -1756,6 +1756,10 @@ int ceph_pool_perm_check(struct ceph_inode_info *ci, int need) u32 pool; int ret, flags; + /* does not support pool namespace yet */ + if (ci->i_pool_ns_len) + return -EIO; + if (ceph_test_mount_opt(ceph_inode_to_client(&ci->vfs_inode), NOPOOLPERM)) return 0; |