summaryrefslogtreecommitdiff
path: root/include/linux/ceph/osd_client.h
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-11-09 16:42:48 +0800
committerIlya Dryomov <idryomov@gmail.com>2016-11-10 20:13:08 +0100
commit3890dce1d3a8b9fe3bc36de99496792e468cd079 (patch)
tree3dff38f7e8e8d2a03bc6fad89e57026fdf24f1c9 /include/linux/ceph/osd_client.h
parent8a8d56176635515d607c520580c73d61f300b409 (diff)
downloadlwn-3890dce1d3a8b9fe3bc36de99496792e468cd079.tar.gz
lwn-3890dce1d3a8b9fe3bc36de99496792e468cd079.zip
libceph: fix legacy layout decode with pool 0
If your data pool was pool 0, ceph_file_layout_from_legacy() transform that to -1 unconditionally, which broke upgrades. We only want do that for a fully zeroed ceph_file_layout, so that it still maps to a file_layout_t. If any fields are set, though, we trust the fl_pgpool to be a valid pool. Fixes: 7627151ea30bc ("libceph: define new ceph_file_layout structure") Link: http://tracker.ceph.com/issues/17825 Signed-off-by: Yan, Zheng <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph/osd_client.h')
0 files changed, 0 insertions, 0 deletions