Skip to contentSkip to conversation

libcephfs: Open-By-Handle API question

DISCUSSION Matt W. Benjamin 1 participant 1 message Jun 4, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1627438937.20.1370351416076.JavaMail.root@thunderbeast.private.linuxbox.com

#1 lore raw

Hi Ilya,

The changes on this branch originated in our Ganesha NFS driver for Ceph, so I'm not sure where the gap is, if any.

I'll send an update to the list when we've finish re-integrating against the libcephfs-wip merge branch.

Matt

Quoted 29 lines · ----- "Ilya Storozhilov

Hi Ceph developers,

in order to represent NFS-frontend to CephFS data storage we are trying to use innovative Open-By-Handle API from 'src/include/cephfs/libcephfs.h' file, which is of 'wip-libcephfs' branch at the moment. API looks quite consistent and useful but we couldn't find a method to get a pointer to root inode of the mounted Ceph filesystem.

At the moment we have found only one place, where it could be fetched
from: an 'Inode* root' member from the 'Client' class ('src/client/Client.h') but it is in 'protected' section, so some hack is needed (e.g. to introduce a Client's descendant, which is providing a method to acces this protected member). Do you know, how to fetch a pointer to the root inode of the mounted Ceph filesystem without any hacking (using just an official CephFS API only)?

Thank you and best wishes,
Ilya V. Storozhilov
EPAM Systems
Lead Software Engineer

P.S. What do you think about to make 'Open-By-Handle' API to be a primary and not low-level API to CephFS and to make POSIX-like API to be just a helper addendum to it?--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 10 lines
Matt Benjamin
The Linux Box
206 South Fifth Ave. Suite 150
Ann Arbor, MI  48104

http://linuxbox.com

tel.  734-761-4689 
fax.  734-769-8938 
cel.  734-216-5309