]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: cleanly define SNAP_HEAD, SNAP_DIR constants
authorSage Weil <sage@inktank.com>
Thu, 28 Mar 2013 23:13:35 +0000 (16:13 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 1 Apr 2013 06:32:41 +0000 (23:32 -0700)
commit6af769a16fa3cf5833f24c1768e80a2585c568c4
tree7041d8d7598a5cb1dcd6c388c92067996ef9113e
parent10dc0ad09fe6441e21c491ea83572c59042d503c
librados: cleanly define SNAP_HEAD, SNAP_DIR constants

We were using the internal CEPH_NOSNAP and CEPH_SNAPDIR constants, and
defining a clone_info_t::HEAD (with a different value).  The docs were
referrring to the internal constant names.

Instead, define librados constants (C and C++) with the same values as the
internal types.

Note that this changes the clone_info_t::HEAD value from -1 to -2 so that
it now matches the internal type.

Signed-off-by: Sage Weil <sage@inktank.com>
doc/PendingReleaseNotes [new file with mode: 0644]
src/include/rados/librados.h
src/include/rados/librados.hpp
src/include/rados/rados_types.hpp
src/librbd/internal.cc
src/osd/ReplicatedPG.cc
src/osd/osd_types.cc
src/osd/osd_types.h
src/osdc/snap_set_diff.cc
src/rados.cc
src/test/librados/snapshots.cc