Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jewel 15387 #8466

Closed
wants to merge 1 commit into from
Closed

Jewel 15387 #8466

wants to merge 1 commit into from

Conversation

ukernel
Copy link
Contributor

@ukernel ukernel commented Apr 6, 2016

No description provided.

…encoding

Pool 0 in legacy encoding might actually mean pool 0. So we can't treat
it as undefined pool in legacy encoding, use (u32)-1 instead.

Another case requires special handling is undefined layout (all zeros)
in legacy encoding.

Fixes: http://tracker.ceph.com/issues/15387
Signed-off-by: Yan, Zheng <zyan@redhat.com>
@ukernel ukernel added bug-fix cephfs Ceph File System labels Apr 6, 2016
@ukernel ukernel added this to the jewel milestone Apr 6, 2016
if (pool_id >= 0)
fl->fl_pg_pool = pool_id;
else
if (pool_id >= 0 && pool_id < (uint32_t)-1) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In what cases do we need the to_legacy behaviour? Is there something client side that relies on getting 0s here sometimes?

@jcsp
Copy link
Contributor

jcsp commented Apr 6, 2016

@liewegas liewegas closed this Apr 6, 2016
@ukernel ukernel reopened this Apr 6, 2016
@ukernel ukernel closed this Apr 6, 2016
@ukernel ukernel deleted the jewel-15387 branch January 12, 2017 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix cephfs Ceph File System
Projects
None yet
3 participants