]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush, mon: unlink vs remove
authorSage Weil <sage@inktank.com>
Fri, 22 Mar 2013 19:32:15 +0000 (12:32 -0700)
committerSage Weil <sage@inktank.com>
Fri, 22 Mar 2013 22:15:38 +0000 (15:15 -0700)
commita60d7df4194d92edb8e636f887e7268893a27b06
treea26675e9ffa246c918bb6878378d0de96629778d
parentb54db77ede57e6fa706cdad9fdf14bcaf69d2d0f
crush, mon: unlink vs remove

Make an 'unlink' mode of remove that will remove a link to a bucket but
not remove the bucket itself.  This refactors remove_item[_under] and moves
some of the checks into common helpers where they are not duplicated.  Fix
callers to pass the extra arg.

Signed-off-by: Sage Weil <sage@inktank.com>
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h
src/crushtool.cc
src/mon/OSDMonitor.cc
src/test/cli/ceph/help.t
src/tools/ceph.cc