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

client: add cap_dirtier_uid/gid to CapSnap #20200

Merged
merged 1 commit into from Feb 8, 2018

Conversation

jtlayton
Copy link
Contributor

@jtlayton jtlayton commented Jan 31, 2018

...and set it according to how it's set in the inode at the time that
we create the CapSnap. In the event that it becomes newly dirty at
the time we finish_cap_snap, then we copy those values over again.

Tracker: http://tracker.ceph.com/issues/22801
Signed-off-by: Jeff Layton jlayton@redhat.com

Set new fields to whatever the inode has at the time that we create the
CapSnap. In the event that it was unset at the time of the creation and
becomes dirty afterward, we set it again at finish.

This ensures that we send a valid uid/gid in the event that it had dirty
caps at any point during that period.

Tracker: http://tracker.ceph.com/issues/22801
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Copy link
Member

@gregsfortytwo gregsfortytwo left a comment

Choose a reason for hiding this comment

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

Reviewed-by: Greg Farnum gfarnum@redhat.com

@batrick batrick merged commit 7a27551 into ceph:master Feb 8, 2018
batrick added a commit that referenced this pull request Feb 8, 2018
* refs/pull/20200/head:
	client: add cap_dirtier_uid/gid to CapSnap

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants