1. 02 5月, 2013 37 次提交
  2. 12 3月, 2013 1 次提交
  3. 27 2月, 2013 2 次提交
    • S
      libceph: add support for HASHPSPOOL pool flag · 83ca14fd
      Sage Weil 提交于
      The legacy behavior adds the pgid seed and pool together as the input for
      CRUSH.  That is problematic because each pool's PGs end up mapping to the
      same OSDs: 1.5 == 2.4 == 3.3 == ...
      
      Instead, if the HASHPSPOOL flag is set, we has the ps and pool together and
      feed that into CRUSH.  This ensures that two adjacent pools will map to
      an independent pseudorandom set of OSDs.
      
      Advertise our support for this via a protocol feature flag.
      Signed-off-by: NSage Weil <sage@inktank.com>
      Reviewed-by: NAlex Elder <elder@inktank.com>
      83ca14fd
    • S
      libceph: update osd request/reply encoding · 1b83bef2
      Sage Weil 提交于
      Use the new version of the encoding for osd requests and replies.  In the
      process, update the way we are tracking request ops and reply lengths and
      results in the struct ceph_osd_request.  Update the rbd and fs/ceph users
      appropriately.
      
      The main changes are:
       - we keep pointers into the request memory for fields we need to update
         each time the request is sent out over the wire
       - we keep information about the result in an array in the request struct
         where the users can easily get at it.
      Signed-off-by: NSage Weil <sage@inktank.com>
      Reviewed-by: NAlex Elder <elder@inktank.com>
      1b83bef2