Re: CephFS locality API RFC

2013-03-14 Thread Noah Watkins
On Mar 14, 2013, at 12:39 PM, Sage Weil wrote: > Unless those old bindings are already broken because of the preferred osd > thing… Well, for preferred_pg EOPNOTSUPP will be ignored by the old bindings, so I guess it still works :)-- To unsubscribe from this list: send the line "unsubscribe c

Re: CephFS locality API RFC

2013-03-14 Thread Sage Weil
On Thu, 14 Mar 2013, Greg Farnum wrote: > On Thursday, March 14, 2013 at 11:33 AM, Noah Watkins wrote: > > > > On Mar 14, 2013, at 11:29 AM, Greg Farnum > (mailto:g...@inktank.com)> wrote: > > > > > On Thursday, March 14, 2013 at 11:14 AM, Noah Watkins wrote: > > > > The current CephFS API is

Re: CephFS locality API RFC

2013-03-14 Thread Greg Farnum
On Thursday, March 14, 2013 at 11:33 AM, Noah Watkins wrote: > > On Mar 14, 2013, at 11:29 AM, Greg Farnum (mailto:g...@inktank.com)> wrote: > > > On Thursday, March 14, 2013 at 11:14 AM, Noah Watkins wrote: > > > The current CephFS API is used to extract locality information as follows: > > >

Re: CephFS locality API RFC

2013-03-14 Thread Sage Weil
On Thu, 14 Mar 2013, Noah Watkins wrote: > The current CephFS API is used to extract locality information as follows: > > First we get a list of OSD IDs: > > ceph_get_file_extent_osds(offset) -> [OSD ID]* > > Using the OSD IDs we can then query for the CRUSH bucket hierarchy: > > ceph_get_o

Re: CephFS locality API RFC

2013-03-14 Thread Noah Watkins
On Mar 14, 2013, at 11:29 AM, Greg Farnum wrote: > On Thursday, March 14, 2013 at 11:14 AM, Noah Watkins wrote: >> The current CephFS API is used to extract locality information as follows: >> >> First we get a list of OSD IDs: >> >> ceph_get_file_extent_osds(offset) -> [OSD ID]* >> >> Using

Re: CephFS locality API RFC

2013-03-14 Thread Greg Farnum
On Thursday, March 14, 2013 at 11:14 AM, Noah Watkins wrote: > The current CephFS API is used to extract locality information as follows: > > First we get a list of OSD IDs: > > ceph_get_file_extent_osds(offset) -> [OSD ID]* > > Using the OSD IDs we can then query for the CRUSH bucket hierarc

CephFS locality API RFC

2013-03-14 Thread Noah Watkins
The current CephFS API is used to extract locality information as follows: First we get a list of OSD IDs: ceph_get_file_extent_osds(offset) -> [OSD ID]* Using the OSD IDs we can then query for the CRUSH bucket hierarchy: ceph_get_osd_crush_location(osd_id) -> path The path includes hostna