]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix legacy layout decode with pool 0
authorSage Weil <sage@redhat.com>
Tue, 5 Apr 2016 20:37:25 +0000 (16:37 -0400)
committerSage Weil <sage@redhat.com>
Tue, 5 Apr 2016 20:37:25 +0000 (16:37 -0400)
commitcd41ca2968d07d32b5432aa137e2077ef0ffff17
tree080c245c5ec51b905a8113b691edec9bdd29f080
parent03bf79607567a84469986619771db8fcc55214cf
mds: fix legacy layout decode with pool 0

If you data pool was pool 0, this was transforming
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.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/fs_types.cc