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

rgw: file setattr #8618

Merged
merged 1 commit into from
Jul 14, 2016
Merged

rgw: file setattr #8618

merged 1 commit into from
Jul 14, 2016

Conversation

mattbenjamin
Copy link
Contributor

Posted for review only. The first 20 commits are already in a PR. The top commit "works" but may not replicate, among other potential problems.

@mattbenjamin mattbenjamin added this to the kraken milestone Apr 15, 2016
@mattbenjamin mattbenjamin changed the title [DNM] rgw file setattr [DNM] rgw: file setattr Apr 15, 2016
@oritwas oritwas assigned oritwas and unassigned yehudasa May 18, 2016
@liewegas liewegas changed the title [DNM] rgw: file setattr rgw: file setattr Jun 8, 2016
@mattbenjamin
Copy link
Contributor Author

@liewegas I'm updating this now, need to use a different path to update attrs

@@ -375,6 +375,7 @@ namespace librados
void zero(uint64_t off, uint64_t len);
void rmxattr(const char *name);
void setxattr(const char *name, const bufferlist& bl);
void setxattr(const char *name, const buffer::list&& bl);
Copy link
Member

Choose a reason for hiding this comment

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

nitpick, formatting ...

Copy link
Member

Choose a reason for hiding this comment

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

still not fixed ...

@mattbenjamin mattbenjamin force-pushed the rgw-file-setattr branch 3 times, most recently from c29fcc4 to 4de3be9 Compare July 12, 2016 19:07
@mattbenjamin
Copy link
Contributor Author

@oritwas I think this version should be ready to merge, can you revisit it?

I have not replaced the quoted '/' and "/" with a constant in this change to avoid churn, I'll be happy to send a separate change to improve that.

Introduce a new RGWSetattrs RGWOp descendant, to create or replace
sets of attrs on buckets or objects.

This version of the change uses the standard RGWRADOS::set_attrs op
(we want attribute changes to (e.g.) sync with other changes).

Previous versions of this changed incorrectly masked the values
of st->st_ino in RGWFileHandle::stat(), now fixed.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
@oritwas oritwas merged commit 6a86bfe into ceph:master Jul 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants