From: Sahid Orentino Ferdjaoui Date: Tue, 28 Mar 2017 16:27:41 +0000 (-0400) Subject: crush: docfix to refer -EINVAL if weight is invalid for uniform bucket X-Git-Tag: v12.0.2~127^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c706180f2a4ac314b9c066c6008b4329d4169c35;p=ceph.git crush: docfix to refer -EINVAL if weight is invalid for uniform bucket Signed-off-by: Sahid Orentino Ferdjaoui --- diff --git a/src/crush/builder.h b/src/crush/builder.h index e7555309805d..57ed1035f222 100644 --- a/src/crush/builder.h +++ b/src/crush/builder.h @@ -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