]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: document list_snaps
authorSage Weil <sage@inktank.com>
Thu, 28 Mar 2013 23:01:55 +0000 (16:01 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 1 Apr 2013 06:32:41 +0000 (23:32 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/include/rados/librados.hpp

index f77cc48a7eced23b72f57ba6cd7932878b68ac77..2bb50f110fcbdac7b84d52ae2475be059e7afabe 100644 (file)
@@ -328,6 +328,21 @@ namespace librados
      * @param prval [out] place error code in prval upon completion
      */
     void list_watchers(std::list<obj_watch_t> *out_watchers, int *prval);
+
+    /**
+     * list snapshot clones associated with a logical object
+     *
+     * This will include a record for each version of the object,
+     * include the "HEAD" (which will have a cloneid of
+     * librados::clone_info_t::HEAD).  Each clone includes a vector
+     * of snap ids for which it is defined to exist.
+     *
+     * NOTE: this operation must be submitted from an IoCtx with a
+     * read snapid of CEPH_SNAPDIR for reliable results.
+     *
+     * @param out_snaps [out] pointer to resulting snap_set_t
+     * @param prval [out] place error code in prval upon completion
+     */
     void list_snaps(snap_set_t *out_snaps, int *prval);
 
   };