On Wed, Apr 18, 2018 at 8:17 AM, Martin Palma <martin@xxxxxxxx> wrote: > Hello, > > Is it possible to get directory/file layout information (size, pool) > of a CephFS directory directly from a metadata server without the need > to mount the fs? Or better through the restful plugin... > > When mounted I can get infos about the directory/file layout using the > getfattr command... You can avoid a local filesystem mount by using libcephfs (has python bindings) for this kind of thing. You might find it useful to refer to src/pybind/ceph_volume_client.py , which uses libcephfs to do various bits of directory and layout manipulation. A libcephfs instance looks like a mount to the server, but from the client side it's completely self contained, doesn't touch any of the VFS or fuse stuff. If you were writing this code, it would be really neat to write it as a ceph-mgr python module[1] that implements some command line operations for getting filesystem stats. John 1. http://docs.ceph.com/docs/master/mgr/plugins/ > > Best, > Martin > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html