]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: docfix to refer -EINVAL if weight is invalid for uniform bucket 14208/head
authorSahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
Tue, 28 Mar 2017 16:27:41 +0000 (12:27 -0400)
committerLoic Dachary <ldachary@redhat.com>
Tue, 28 Mar 2017 21:29:47 +0000 (23:29 +0200)
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
src/crush/builder.h

index e7555309805d29d15016d5455f00f11c6e4aa69a..57ed1035f2223be96b1dc1870cb0ee79672968ec 100644 (file)
@@ -219,6 +219,8 @@ struct crush_bucket *crush_make_bucket(struct crush_map *map, int alg, int hash,
  *
  * - return -ENOMEM if the __bucket__ cannot be resized with __realloc(3)__.
  * - return -ERANGE if adding __weight__ to the weight of the bucket overflows.
+ * - return -EINVAL if __bucket->alg__ is ::CRUSH_BUCKET_UNIFORM and
+ *   the __weight__ is not equal to __(struct crush_bucket_uniform *)bucket->item_weight__.
  * - return -1 if the value of __bucket->alg__ is unknown.
  *
  * @returns 0 on success, < 0 on error