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: cephfs: lookup of /.. in jewel returns -ENOENT #12783

Merged
merged 1 commit into from Jan 31, 2017

Conversation

smithfarm
Copy link
Contributor

The CEPH_INO_DOTDOT thing is quite strange. Under most OS (Linux
included), the parent of the root is itself. IOW, at the root, '.' and
'..' refer to the same inode.

Change the ceph client to do the same, as this allows users to get
valid stat info for '..', as well as elimnating some special-casing.

Also in several places, we're checking dn_set.empty as an indicator
of being the root. While that is true for the root, it's also true
for unlinked directories.

This patch has treats them the same. An unlinked directory will
be reparented to itself, effectively acting as a root of its own.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 30d4ca0)
@smithfarm smithfarm self-assigned this Jan 4, 2017
@smithfarm smithfarm added this to the jewel milestone Jan 4, 2017
@smithfarm smithfarm added bug-fix core cephfs Ceph File System and removed core labels Jan 4, 2017
@ukernel
Copy link
Contributor

ukernel commented Jan 9, 2017

reviewed-by

@smithfarm smithfarm changed the title jewel: lookup of /.. in jewel returns -ENOENT jewel: cephfs: lookup of /.. in jewel returns -ENOENT Jan 30, 2017
@smithfarm
Copy link
Contributor Author

@ukernel This PR passed an fs suite at http://tracker.ceph.com/issues/17851#note-39 with some valgrind issues, some of which can be ignored because they occurred on tcmalloc builds. That said, there is one valgrind issue in the MDS which resembles http://tracker.ceph.com/issues/5241 (28 MDSCacheObject occurrences).

I see you reviewed the PR already - do you think this PR can be merged in spite of the above valgrind issue?

@smithfarm
Copy link
Contributor Author

@jcsp This passed a rados suite at http://tracker.ceph.com/issues/17851#note-45 with some (few, unrelated) failures, as well as an fs suite at http://tracker.ceph.com/issues/17851#note-49 with the usual (most likely benign) valgrind issues. OK to merge?

@smithfarm smithfarm requested a review from jcsp January 31, 2017 07:31
@jcsp jcsp merged commit 2d2e4af into ceph:jewel Jan 31, 2017
@smithfarm smithfarm deleted the wip-18413-jewel branch January 31, 2017 13:16
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
4 participants