1. 06 6月, 2014 1 次提交
  2. 05 4月, 2014 1 次提交
    • Y
      ceph: use fl->fl_file as owner identifier of flock and posix lock · eb13e832
      Yan, Zheng 提交于
      flock and posix lock should use fl->fl_file instead of process ID
      as owner identifier. (posix lock uses fl->fl_owner. fl->fl_owner
      is usually equal to fl->fl_file, but it also can be a customized
      value). The process ID of who holds the lock is just for F_GETLK
      fcntl(2).
      
      The fix is rename the 'pid' fields of struct ceph_mds_request_args
      and struct ceph_filelock to 'owner', rename 'pid_namespace' fields
      to 'pid'. Assign fl->fl_file to the 'owner' field of lock messages.
      We also set the most significant bit of the 'owner' field. MDS can
      use that bit to distinguish between old and new clients.
      
      The MDS counterpart of this patch modifies the flock code to not
      take the 'pid_namespace' into consideration when checking conflict
      locks.
      Signed-off-by: NYan, Zheng <zheng.z.yan@intel.com>
      Reviewed-by: NSage Weil <sage@inktank.com>
      eb13e832
  3. 03 4月, 2014 1 次提交
  4. 18 2月, 2014 1 次提交
  5. 28 1月, 2014 1 次提交
  6. 21 1月, 2014 2 次提交
  7. 19 2月, 2013 1 次提交
    • A
      libceph: update ceph_fs.h · dd6f5e10
      Alex Elder 提交于
      Update most of "include/linux/ceph/ceph_fs.h" to match its user
      space counterpart in "src/include/ceph_fs.h" in the ceph tree.
      
      Everything that has changed is either:
          - added definitions (therefore no real effect on existing code)
          - deleting unused symbols
          - added or revised comments
      
      There were some differences between the struct definitions for
      ceph_mon_subscribe_item and the open field of ceph_mds_request_args;
      those differences remain.
      
      This and the next commit resolve:
          http://tracker.ceph.com/issues/4165Signed-off-by: NAlex Elder <elder@inktank.com>
      Reviewed-by: NJosh Durgin <josh.durgin@inktank.com>
      dd6f5e10
  8. 03 10月, 2012 1 次提交
  9. 31 7月, 2012 1 次提交
  10. 08 5月, 2012 1 次提交
  11. 25 5月, 2011 1 次提交
  12. 22 3月, 2011 1 次提交
  13. 13 1月, 2011 1 次提交
    • S
      ceph: add dir_layout to inode · 6c0f3af7
      Sage Weil 提交于
      Add a ceph_dir_layout to the inode, and calculate dentry hash values based
      on the parent directory's specified dir_hash function.  This is needed
      because the old default Linux dcache hash function is extremely week and
      leads to a poor distribution of files among dir fragments.
      Signed-off-by: NSage Weil <sage@newdream.net>
      6c0f3af7
  14. 21 10月, 2010 2 次提交
    • G
      571dba52
    • 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
  15. 03 8月, 2010 3 次提交
  16. 02 8月, 2010 4 次提交
  17. 30 5月, 2010 1 次提交
    • S
      ceph: make lease code DN specific · dd1c9057
      Sage Weil 提交于
      The lease code includes a mask in the CEPH_LOCK_* namespace, but that
      namespace is changing, and only one mask (formerly _DN == 1) is used, so
      hard code for that value for now.
      
      If we ever extend this code to handle leases over different data types we
      can extend it accordingly.
      Signed-off-by: NSage Weil <sage@newdream.net>
      dd1c9057
  18. 18 5月, 2010 3 次提交
  19. 18 2月, 2010 1 次提交
  20. 03 2月, 2010 1 次提交
  21. 26 1月, 2010 2 次提交
  22. 24 12月, 2009 3 次提交
  23. 05 12月, 2009 1 次提交
  24. 04 12月, 2009 1 次提交
  25. 21 11月, 2009 1 次提交
  26. 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
  27. 07 11月, 2009 2 次提交