Feature #3863
implement a tool to lookup inode numbers without holding their path
0%
Description
This should just be a small wrapper around Client.cc*, but we need to be able to generate inode lookups without knowing the path in order to test our lookup-by-ino functionality. We can probably write and test this without that being implemented though (just by using it on a small FS).
[*]: libcephfs would probably be better, but it doesn't currently export that function. Making it do so is probably the better choice, though!
Associated revisions
client: Add lookup_parent & lookup_name
Exposing the CEPH_MDS_OP_LOOKUPPARENT and
recently added CEPH_MDS_OP_LOOKUPNAME operations.
lookup_ino and lookup_parent optionally take an Inode**
which will be populated with a reference to the
resulting inode.
Fixes: #3863
Signed-off-by: John Spray <john.spray@inktank.com>
libcephfs: add ceph_ll_lookup_inode
This is a wrapper to lookup_ino, lookup_parent
and lookup_name, to provide the
caller with the requested inode and its
dentry. The result is suitable for traversing
the inode's path.
Fixes: #3863
Signed-off-by: John Spray <john.spray@inktank.com>
tools: Create ceph-client-debug
For exposing test/dev functionality which uses
the cephfs client interface.
Initially just provides lookup-by-ino.
Fixes: #3863
Signed-off-by: John Spray <john.spray@inktank.com>
History
#1 Updated by Sam Lang about 11 years ago
+1 for just adding the libcephfs function, and a test in test_libcephfs.
#2 Updated by Greg Farnum about 11 years ago
- translation missing: en.field_position set to 23
#3 Updated by Greg Farnum about 11 years ago
- translation missing: en.field_position deleted (
23) - translation missing: en.field_position set to 17
#4 Updated by Sage Weil about 11 years ago
- translation missing: en.field_story_points set to 3
- translation missing: en.field_position deleted (
18) - translation missing: en.field_position set to 7
#5 Updated by Ian Colle about 11 years ago
- Target version set to v0.58
- translation missing: en.field_position deleted (
8) - translation missing: en.field_position set to 6
#6 Updated by Sage Weil about 11 years ago
- translation missing: en.field_position deleted (
6) - translation missing: en.field_position set to 6
#7 Updated by Ian Colle about 11 years ago
- Assignee set to Sam Lang
#8 Updated by Greg Farnum about 11 years ago
- Target version changed from v0.58 to v0.59
#9 Updated by Greg Farnum about 11 years ago
- Target version deleted (
v0.59)
#10 Updated by Sage Weil about 10 years ago
- Status changed from New to Resolved
#11 Updated by Sage Weil about 10 years ago
- Status changed from Resolved to 12
#12 Updated by John Spray about 10 years ago
- Status changed from 12 to In Progress
- Assignee changed from Sam Lang to John Spray
#13 Updated by Greg Farnum about 10 years ago
- Status changed from In Progress to Resolved
Merged into master in commit:83661c273e759837816d5cd7ba27233ded898455
#14 Updated by Greg Farnum over 7 years ago
- Component(FS) Client added