[sheepdog] [PATCH 8/9] erasure: add basic read/write code proper
MORITA Kazutaka
morita.kazutaka at gmail.com
Tue Sep 24 10:54:49 CEST 2013
At Thu, 19 Sep 2013 18:42:52 +0800,
Liu Yuan wrote:
>
> +static size_t get_object_size(uint64_t oid)
> +{
> + if (is_erasure_object(oid))
> + return SD_EC_OBJECT_SIZE;
> + return get_objsize(oid);
> +}
> +
I think the function names (get_object_size and get_objsize) are
confusing. get_object_size() is used to calculate an on-disk size of
the object, right? How about get_store_objsize()?
Thanks,
Kazutaka
More information about the sheepdog
mailing list