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

os/bluestore: fail early on very large objects #16924

Merged
merged 1 commit into from Aug 12, 2017

Conversation

liewegas
Copy link
Member

@liewegas liewegas commented Aug 8, 2017

We have a hard 4GB object size limit (although in practice we want
to be well below that!).

See http://tracker.ceph.com/issues/20923
Signed-off-by: Sage Weil sage@redhat.com

CollectionRef& c,
OnodeRef& o,
uint64_t offset)
{
dout(15) << __func__ << " " << c->cid << " " << o->oid
<< " 0x" << std::hex << offset << std::dec
<< dendl;
_do_truncate(txc, c, o, offset);
int r = 0;
if (offset + length >= OBJECT_MAX_SIZE) {
Copy link
Member

Choose a reason for hiding this comment

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

Do you mean if (offset >= OBJECT_MAX_SIZE)

We have a hard 4GB object size limit (although in practice we want
to be *well* below that!).

See http://tracker.ceph.com/issues/20923
Signed-off-by: Sage Weil <sage@redhat.com>
Copy link
Member

@xiexingguo xiexingguo left a comment

Choose a reason for hiding this comment

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

This looks fine with me. @liewegas

@liewegas liewegas merged commit 4f6ae41 into ceph:master Aug 12, 2017
@liewegas liewegas deleted the wip-20923 branch August 12, 2017 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants