1. 21 10月, 2010 1 次提交
    • Y
      ceph: factor out libceph from Ceph file system · 3d14c5d2
      Yehuda Sadeh 提交于
      This factors out protocol and low-level storage parts of ceph into a
      separate libceph module living in net/ceph and include/linux/ceph.  This
      is mostly a matter of moving files around.  However, a few key pieces
      of the interface change as well:
      
       - ceph_client becomes ceph_fs_client and ceph_client, where the latter
         captures the mon and osd clients, and the fs_client gets the mds client
         and file system specific pieces.
       - Mount option parsing and debugfs setup is correspondingly broken into
         two pieces.
       - The mon client gets a generic handler callback for otherwise unknown
         messages (mds map, in this case).
       - The basic supported/required feature bits can be expanded (and are by
         ceph_fs_client).
      
      No functional change, aside from some subtle error handling cases that got
      cleaned up in the refactoring process.
      Signed-off-by: NSage Weil <sage@newdream.net>
      3d14c5d2
  2. 02 8月, 2010 2 次提交
  3. 18 5月, 2010 1 次提交
  4. 12 5月, 2010 1 次提交
  5. 10 4月, 2010 1 次提交
  6. 18 2月, 2010 1 次提交
    • S
      ceph: use rbtree for pg pools; decode new osdmap format · 4fc51be8
      Sage Weil 提交于
      Since we can now create and destroy pg pools, the pool ids will be sparse,
      and an array no longer makes sense for looking up by pool id.  Use an
      rbtree instead.
      
      The OSDMap encoding also no longer has a max pool count (previously used to
      allocate the array).  There is a new pool_max, that is the largest pool id
      we've ever used, although we don't actually need it in the client.
      Signed-off-by: NSage Weil <sage@newdream.net>
      4fc51be8
  7. 12 2月, 2010 1 次提交
  8. 03 2月, 2010 1 次提交
  9. 24 12月, 2009 1 次提交
  10. 19 11月, 2009 1 次提交
    • S
      ceph: negotiate authentication protocol; implement AUTH_NONE protocol · 4e7a5dcd
      Sage Weil 提交于
      When we open a monitor session, we send an initial AUTH message listing
      the auth protocols we support, our entity name, and (possibly) a previously
      assigned global_id.  The monitor chooses a protocol and responds with an
      initial message.
      
      Initially implement AUTH_NONE, a dummy protocol that provides no security,
      but works within the new framework.  It generates 'authorizers' that are
      used when connecting to (mds, osd) services that simply state our entity
      name and global_id.
      
      This is a wire protocol change.
      Signed-off-by: NSage Weil <sage@newdream.net>
      4e7a5dcd
  11. 07 11月, 2009 1 次提交
    • S
      ceph: make object hash a pg_pool property · 1654dd0c
      Sage Weil 提交于
      The object will be hashed to a placement seed (ps) based on the pg_pool's
      hash function.  This allows new hashes to be introduced into an existing
      object store, or selection of a hash appropriate to the objects that
      will be stored in a particular pool.
      Signed-off-by: NSage Weil <sage@newdream.net>
      1654dd0c
  12. 05 11月, 2009 1 次提交
  13. 07 10月, 2009 1 次提交
    • S
      ceph: on-wire types · 0dee3c28
      Sage Weil 提交于
      These headers describe the types used to exchange messages between the
      Ceph client and various servers.  All types are little-endian and
      packed.  These headers are shared between the kernel and userspace, so
      all types are in terms of e.g. __u32.
      
      Additionally, we define a few magic values to identify the current
      version of the protocol(s) in use, so that discrepancies to be
      detected on mount.
      Signed-off-by: NSage Weil <sage@newdream.net>
      0dee3c28