Actions
Feature #3679
closedAny API to get metadata?
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:
Description
hello,there.
I am wondering if there is any API to get the metadata of a file .
I have the ceph file system run by mounting it to the /mnt/ceph
I want to know how many chunks the file has been parted,and where the chunks have been stored.
Is there any API I can use to get the information?
Thank you very much!
from lollipop
Updated by Sage Weil over 11 years ago
- Status changed from New to Closed
Yep! See libcephfs. There is
int ceph_get_file_stripe_unit(struct ceph_mount_info *cmount, int fh); int ceph_get_file_pool(struct ceph_mount_info *cmount, int fh); int ceph_get_file_replication(struct ceph_mount_info *cmount, int fh); int ceph_get_file_stripe_address(struct ceph_mount_info *cmount, int fd, loff_t offset, struct sockaddr_storage *addr, int naddr);
Actions