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: fs: client: nlink count is not maintained correctly #10877

Merged
4 commits merged into from Oct 17, 2016
Merged

jewel: fs: client: nlink count is not maintained correctly #10877

4 commits merged into from Oct 17, 2016

Conversation

ghost
Copy link

@ghost ghost commented Aug 25, 2016

We need to allow callers to specify caps to acquire during a lookup, as
they may need to scrape certain info out of the inode later. Allow them
to pass in a mask. For now, _lookup just passes in 0 for the mask,
but verify_reply_trace passes in the regetattr_mask to match what we'd
request in the _getattr request if there were a traceless reply.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit a2ce16f)
...and attempt to pass in a sane value there, based on what we'll do
with the resulting inode.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit f3605d3)
…ary caps

If we don't have the caps we'll need later, then we must reissue the
lookup to get them regardless of whether we have a lease on the
dentry.

Fixes: http://tracker.ceph.com/issues/16668
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 9e84767)
…he mtime

The current code just looks at the sec field, but the difference may
only be evident in the nsec field.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 14ee7bc)
@ghost ghost self-assigned this Aug 25, 2016
@ghost ghost added this to the jewel milestone Aug 25, 2016
@ghost ghost added bug-fix fs labels Aug 25, 2016
ghost pushed a commit that referenced this pull request Aug 25, 2016
…ed correctly

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 10, 2016
…ed correctly

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 10, 2016
…ed correctly

Reviewed-by: Loic Dachary <ldachary@redhat.com>
ghost pushed a commit that referenced this pull request Oct 13, 2016
…ed correctly

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@ghost
Copy link
Author

ghost commented Oct 14, 2016

@jcsp does this backport look good to merge ? It passed the fs suite http://tracker.ceph.com/issues/17487#note-13 (except for one known bug that is, I believe, unrelated)

@ghost ghost assigned jcsp Oct 14, 2016
ghost pushed a commit that referenced this pull request Oct 17, 2016
…ed correctly

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@jcsp
Copy link
Contributor

jcsp commented Oct 17, 2016

👍

@ghost ghost merged commit b174220 into ceph:jewel Oct 17, 2016
@theanalyst theanalyst changed the title jewel: client: nlink count is not maintained correctly "jewel: client: nlink count is not maintained correctly" Nov 17, 2016
@theanalyst theanalyst changed the title "jewel: client: nlink count is not maintained correctly" jewel: client: nlink count is not maintained correctly Nov 17, 2016
@theanalyst theanalyst changed the title jewel: client: nlink count is not maintained correctly jewel: fs: client: nlink count is not maintained correctly Nov 17, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants