]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: fix doxygen warnings 4086/head
authorKefu Chai <kchai@redhat.com>
Thu, 19 Mar 2015 03:36:44 +0000 (11:36 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 19 Mar 2015 03:50:26 +0000 (11:50 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
22 files changed:
src/common/Initialize.h
src/common/hobject.h
src/crush/CrushWrapper.h
src/crush/mapper.c
src/include/rados/librados.h
src/include/rados/librados.hpp
src/include/radosstriper/libradosstriper.h
src/include/radosstriper/libradosstriper.hpp
src/include/rbd/librbd.hpp
src/key_value_store/kv_flat_btree_async.h
src/librbd/AsyncFlattenRequest.h
src/librbd/AsyncResizeRequest.h
src/librbd/AsyncTrimRequest.h
src/librbd/CopyupRequest.h
src/mds/MDLog.cc
src/mon/LogMonitor.cc
src/mon/MonClient.h
src/msg/Connection.h
src/os/FileStore.h
src/os/IndexManager.h
src/os/ObjectStore.h
src/osd/ReplicatedPG.h

index 273a8710b8cf5ab7677ce9f6ab6c881b6795bb2b..35414d64be8f830587f6c36c6e55ff79e9e3e338 100644 (file)
@@ -59,8 +59,8 @@ class Initialize {
   /**
    * This form of constructor causes its function argument to be invoked
    * when the object is constructed.  When used with a static Initialize
-   * object, this will cause #func to run before main() runs, so that
-   * #func can perform once-only initialization.
+   * object, this will cause \p func to run before main() runs, so that
+   * \p func can perform once-only initialization.
    *
    * \param func
    *      This function is invoked with no arguments when the object is
index 94aa6bf782863594c589dee969672493c9cf0c59..c6123d4ff7f4f43c35201be2a2b036d887fc5cce 100644 (file)
@@ -170,8 +170,8 @@ public:
   /**
    * Returns set S of strings such that for any object
    * h where h.match(bits, mask), there is some string
-   * s \in S such that s is a prefix of h.to_str().
-   * Furthermore, for any s \in S, s is a prefix of
+   * s \f$\in\f$ S such that s is a prefix of h.to_str().
+   * Furthermore, for any s $f\in\f$ S, s is a prefix of
    * h.str() implies that h.match(bits, mask).
    */
   static set<string> get_prefixes(
index cfafab067dee29a8a1992212f6ad2aa625509001..4e60d7ec42ca40859b69a4119fa7b21095f3eab7 100644 (file)
@@ -621,7 +621,6 @@ public:
    *
    * Will return the weight for the first instance it finds.
    *
-   * @param cct cct
    * @param id item id to check
    * @return weight of item
    */
index b2e0bfd9266fedfea3297d9a4bd77860b0186037..e9ca652fae3b8dff9c9cc51f1a4b919cf2452120 100644 (file)
 
 /**
  * crush_find_rule - find a crush_rule id for a given ruleset, type, and size.
- * @map: the crush_map
- * @ruleset: the storage ruleset id (user defined)
- * @type: storage ruleset type (user defined)
- * @size: output set size
+ * @param map: the crush_map
+ * @param ruleset: the storage ruleset id (user defined)
+ * @param type: storage ruleset type (user defined)
+ * @param size: output set size
  */
 int crush_find_rule(const struct crush_map *map, int ruleset, int type, int size)
 {
@@ -388,22 +388,22 @@ static int is_out(const struct crush_map *map,
 
 /**
  * crush_choose_firstn - choose numrep distinct items of given type
- * @map: the crush_map
- * @bucket: the bucket we are choose an item from
- * @x: crush input value
- * @numrep: the number of items to choose
- * @type: the type of item to choose
- * @out: pointer to output vector
- * @outpos: our position in that vector
- * @out_size: size of the out vector
- * @tries: number of attempts to make
- * @recurse_tries: number of attempts to have recursive chooseleaf make
- * @local_retries: localized retries
- * @local_fallback_retries: localized fallback retries
- * @recurse_to_leaf: true if we want one device under each item of given type (chooseleaf instead of choose)
- * @vary_r: pass r to recursive calls
- * @out2: second output vector for leaf items (if @recurse_to_leaf)
- * @parent_r: r value passed from the parent
+ * @param map: the crush_map
+ * @param bucket: the bucket we are choose an item from
+ * @param x: crush input value
+ * @param numrep: the number of items to choose
+ * @param type: the type of item to choose
+ * @param out: pointer to output vector
+ * @param outpos: our position in that vector
+ * @param out_size: size of the out vector
+ * @param tries: number of attempts to make
+ * @param recurse_tries: number of attempts to have recursive chooseleaf make
+ * @param local_retries: localized retries
+ * @param local_fallback_retries: localized fallback retries
+ * @param recurse_to_leaf: true if we want one device under each item of given type (chooseleaf instead of choose)
+ * @param vary_r: pass r to recursive calls
+ * @param out2: second output vector for leaf items (if @recurse_to_leaf)
+ * @param parent_r: r value passed from the parent
  */
 static int crush_choose_firstn(const struct crush_map *map,
                               struct crush_bucket *bucket,
@@ -769,14 +769,14 @@ static void crush_choose_indep(const struct crush_map *map,
 
 /**
  * crush_do_rule - calculate a mapping with the given input and rule
- * @map: the crush_map
- * @ruleno: the rule id
- * @x: hash input
- * @result: pointer to result vector
- * @result_max: maximum result size
- * @weight: weight vector (for map leaves)
- * @weight_max: size of weight vector
- * @scratch: scratch vector for private use; must be >= 3 * result_max
+ * @param map: the crush_map
+ * @param ruleno: the rule id
+ * @param x: hash input
+ * @param result: pointer to result vector
+ * @param result_max: maximum result size
+ * @param weight: weight vector (for map leaves)
+ * @param weight_max: size of weight vector
+ * @param scratch: scratch vector for private use; must be >= 3 * result_max
  */
 int crush_do_rule(const struct crush_map *map,
                  int ruleno, int x, int *result, int result_max,
index 15a225bf5ffc4a12cc6df0a655cca4da9da75dee..9d372cedc4e92e4fc89ab5cff754b7661a8809d3 100644 (file)
@@ -624,7 +624,6 @@ CEPH_RADOS_API uint64_t rados_get_instance_id(rados_t cluster);
  *
  * @param cluster which cluster the pool is in
  * @param pool_name name of the pool
- * @param pool_id unique id of the pool
  * @param ioctx where to store the io context
  * @returns 0 on success, negative error code on failure
  */
index 92aa9f66e3a2fea1634b96192ed9ac97b7d176e5..74e970eaa6be314a949036347f7fdbfdc5a417ee 100644 (file)
@@ -790,7 +790,7 @@ namespace librados
     /**
      * Retrieve hit set for a given hash, and time
      *
-     * @param uint32_t [in] hash position
+     * @param hash [in] hash position
      * @param c [in] completion
      * @param stamp [in] time interval that falls within the hit set's interval
      * @param pbl [out] buffer to store the result in
index f8f0490ac758836224c7e0f220c66c7da4d4edc3..70595c933d51bd69986b3632e4776f3711110610 100644 (file)
@@ -257,7 +257,7 @@ int rados_striper_setxattr(rados_striper_t striper,
  * Delete an extended attribute from a striped object.
  *
  * @param striper the striper in which the rmxattr will occur
- * @param o the name of the object
+ * @param oid name of the object
  * @param name which xattr to delete
  * @returns 0 on success, negative error code on failure
  */
index 2da201cfe199bea5fcdc948f8df0e37a0e5e202f..05179ffbc658c07e0f1aa1791e9e5a9e4e255146 100644 (file)
@@ -142,25 +142,25 @@ namespace libradosstriper
 
     /**
      * synchronously append data to the striped object
-     * NOTE: this call steals the contents of @param bl.
+     * NOTE: this call steals the contents of @p bl.
      */
     int append(const std::string& soid, const ceph::bufferlist& bl, size_t len);
 
     /**
      * asynchronously write to the striped object at the specified offset.
-     * NOTE: this call steals the contents of @param bl.
+     * NOTE: this call steals the contents of @p bl.
      */
     int aio_write(const std::string& soid, librados::AioCompletion *c, const ceph::bufferlist& bl, size_t len, uint64_t off);
 
     /**
      * asynchronously fill the striped object with the specified data
-     * NOTE: this call steals the contents of @param bl.
+     * NOTE: this call steals the contents of @p bl.
      */
     int aio_write_full(const std::string& soid, librados::AioCompletion *c, const ceph::bufferlist& bl);
 
     /**
      * asynchronously append data to the striped object
-     * NOTE: this call steals the contents of @param bl.
+     * NOTE: this call steals the contents of @p bl.
      */
     int aio_append(const std::string& soid, librados::AioCompletion *c, const ceph::bufferlist& bl, size_t len);
 
index 67c9c74a72fe65d3dc8fa228cc095c7dbe519577..a5a7bae045d4b89d18d506fc96be342218380b49 100644 (file)
@@ -234,9 +234,8 @@ public:
   int aio_flush(RBD::AioCompletion *c);
 
   /**
-   * Drop any cached data for an image
+   * Drop any cached data for this image
    *
-   * @param image the image to invalidate cached data for
    * @returns 0 on success, negative error code on failure
    */
   int invalidate_cache();
index 6713bf6ec26b9ccca925504f1ddbd1545edd04fb..46e8b357c7419c2720ceac0e24c9e68adbbb455e 100644 (file)
@@ -689,7 +689,7 @@ protected:
    *
    * @param idata: the index data parsed from the index entry left by the dead
    * client.
-   * @param errno: the error that caused the client to realize the other client
+   * @param error: the error that caused the client to realize the other client
    * died (should be -ENOENT or -ETIMEDOUT)
    * @post: rolls forward if -ENOENT, otherwise rolls back.
    */
index 3f0c6126296821098b51283b39bbd1715d48f464..c2af903ef4da4a6276709ae409cc271833f02e95 100644 (file)
@@ -34,6 +34,8 @@ private:
    * Flatten goes through the following state machine to copyup objects
    * from the parent image:
    *
+   * @verbatim
+   *
    * <start>
    *    |
    *    v
@@ -49,6 +51,8 @@ private:
    *           .                                   .
    *           . . . . . . . . . . . . . . . . . . .
    *
+   * @endverbatim
+   *
    * The _UPDATE_CHILDREN state will be skipped if the image has one or
    * more snapshots. The _UPDATE_HEADER state will be skipped if the
    * image was concurrently flattened by another client.
index a719c9d59c4c5a6810d570c6b84b9ee508c4c77b..277b39d2d7680e06b75349bffa7b5aaf0e6e1e44 100644 (file)
@@ -38,6 +38,8 @@ private:
    * Resize goes through the following state machine to resize the image
    * and update the object map:
    *
+   * @verbatim
+   *
    * <start> -------------> STATE_FINISHED -----------------------------\
    *  |  .    (no change)                                               |
    *  |  .                                                              |
@@ -60,6 +62,8 @@ private:
    *                                             v                   v  v
    *                                  STATE_SHRINK_OBJECT_MAP ---> <finish>
    *
+   * @endverbatim
+   *
    * The _OBJECT_MAP states are skipped if the object map isn't enabled.
    * The state machine will immediately transition to _FINISHED if there
    * are no objects to trim.
index 7a89a119bb951093a97a9f223d8163a7505bd00d..9a000dfa93c61a2a32f1adae4e36d31cef9c84c1 100644 (file)
@@ -25,6 +25,8 @@ protected:
    * Trim goes through the following state machine to remove whole objects,
    * clean partially trimmed objects, and update the object map:
    *
+   * @verbatim
+   *
    *     <start> . . . . > STATE_FINISHED . . . . . . . . .
    *      |   .                                           .
    *      |   . . . . . . . . . . . .                     .
@@ -40,6 +42,8 @@ protected:
    *        .                                           .
    *        . . . . . . . . . . . . . . . . . . . . . . .
    *
+   * @endverbatim
+   *
    * The _PRE_REMOVE/_POST_REMOVE states are skipped if the object map
    * isn't enabled. The _REMOVE_OBJECTS state is skipped if no whole objects
    * are removed.  The _CLEAN_BOUNDARY state is skipped if no boundary
index 92714c2bc9a4426a6772b46cf5710a5cb4c2960d..87a6b16efb4cea538a196596bf2ae59a65bf9423 100644 (file)
@@ -31,6 +31,9 @@ namespace librbd {
      * Copyup requests go through the following state machine to read from the
      * parent image, update the object map, and copyup the object:
      *
+     *
+     * @verbatim
+     *
      * <start>
      *    |
      *    v
@@ -40,6 +43,9 @@ namespace librbd {
      *                            .   |
      *                            v   v
      *                           <finish>
+     *
+     * @endverbatim
+     *
      * The _OBJECT_MAP state is skipped if the object map isn't enabled.
      */
     enum State {
index ebc474a8081b74eb5e876c5a639e320fc8042d46..8f23633b701bd18fb17770e47f00d21b4c85f1c2 100644 (file)
@@ -585,7 +585,7 @@ class C_MaybeExpiredSegment : public MDSInternalContext {
 };
 
 /**
- * Like ::trim, but instead of trimming to max_segments, trim all but the latest
+ * Like MDLog::trim, but instead of trimming to max_segments, trim all but the latest
  * segment.
  */
 int MDLog::trim_all()
index 05bb73fd9b5df3cf1c70be59ac96033d674e77e9..ad3a422beb2295b7ada7991f5fc54853ff71ae6a 100644 (file)
@@ -535,10 +535,10 @@ bool LogMonitor::_create_sub_summary(MLog *mlog, int level)
 }
 
 /**
- * Create an incremental log message from version @sv to @summary.version
+ * Create an incremental log message from version \p sv to \p summary.version
  *
  * @param mlog Log message we'll send to the client with the messages received
- *             since version @sv, inclusive.
+ *             since version \p sv, inclusive.
  * @param level        The max log level of the messages the client is interested in.
  * @param sv   The version the client is looking for.
  */
index 239d91b45872ac05ae0abd8fdc0a2adc64ebe486..4df8320bb883738f7e365c3a42e91b83c8f740c8 100644 (file)
@@ -288,7 +288,7 @@ public:
    * reply in @p result_reply.
    *
    * @param[in]  mon_id Target monitor's ID
-   * @param[out] Resulting reply from mon.ID, if param != NULL
+   * @param[out] result_reply reply from mon.ID, if param != NULL
    * @returns    0 in case of success; < 0 in case of error,
    *             -ETIMEDOUT if monitor didn't reply before timeout
    *             expired (default: conf->client_mount_timeout).
index 8961d6438f5071a8dc467f7b71009d897e5754ea..1539b39100de4d829beb68c8ede5c595ef95eb5c 100644 (file)
@@ -113,7 +113,6 @@ public:
    *
    * @param m The Message to send. The Messenger consumes a single reference
    * when you pass it in.
-   * @param con The Connection to send the Message out on.
    *
    * @return 0 on success, or -errno on failure.
    */
index af1fb8d8121258edc278839324c0c89b74650f91..bdd6761cf77db8146cd4318ea01b8221ad9b0431 100644 (file)
@@ -635,7 +635,7 @@ public:
    * @param expected_num_objs - expected number of objects in this collection
    * @param spos              - sequence position
    *
-   * @Return 0 on success, an error code otherwise
+   * @return 0 on success, an error code otherwise
    */
   int _collection_hint_expected_num_objs(coll_t c, uint32_t pg_num,
       uint64_t expected_num_objs,
index cf9ba898c478e56b84fd3ccabd4bc602dbb9aa04..6feafacd0185b065568ccccb1929b69ce3420c34 100644 (file)
@@ -77,7 +77,7 @@ public:
    * Reserve and return index for c
    *
    * @param [in] c Collection for which to get index
-   * @param [in] path Path to collection
+   * @param [in] baseDir base directory of collections
    * @param [out] index Index for c
    * @return error code
    */
index b45ae28799483c6a38e9966fb2601cf31684b32f..dd703743dcd4f523aa1c5c5bf9a2423fa4d18798 100644 (file)
@@ -2048,7 +2048,7 @@ public:
    * @param start list objects that sort >= this value
    * @param min return at least this many results, unless we reach the end
    * @param max return no more than this many results
-   * @param snapid return no objects with snap < snapid
+   * @param snap return no objects with snap < snapid
    * @param ls [out] result
    * @param next [out] next item sorts >= this value
    * @return zero on success, or negative error
index f128c71e8d442f7f70038736211d16ead890711c..d44096a1e2e9e35dfd6e9d4525caec273db792be 100644 (file)
@@ -1309,7 +1309,6 @@ protected:
    * @param src: The source object
    * @param oloc: the source object locator
    * @param version: the version of the source object to copy (0 for any)
-   * @param temp_dest_oid: the temporary object to use for large objects
    */
   void start_copy(CopyCallback *cb, ObjectContextRef obc, hobject_t src,
                  object_locator_t oloc, version_t version, unsigned flags,