[sheepdog] [PATCH] sheep: treat inode object as a sparse object
Hitoshi Mitake
mitake.hitoshi at gmail.com
Sun Oct 5 08:13:19 CEST 2014
On Thu, Oct 2, 2014 at 6:24 PM, Hitoshi Mitake
<mitake.hitoshi at lab.ntt.co.jp> wrote:
> Sparse object cannot handle erasure coded objects well. But inode
> objects are always stored with naive replication. So this patch adds a
> change for treating inode objects as a sparse object for reducing disk
> space.
>
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
> sheep/sheep_priv.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied.
Thanks,
Hitoshi
>
> diff --git a/sheep/sheep_priv.h b/sheep/sheep_priv.h
> index a572bb9..ba2c684 100644
> --- a/sheep/sheep_priv.h
> +++ b/sheep/sheep_priv.h
> @@ -492,7 +492,7 @@ static inline bool node_is_local(const struct sd_node *n)
> */
> static inline bool is_sparse_object(uint64_t oid)
> {
> - return is_ledger_object(oid);
> + return is_ledger_object(oid) || is_vdi_obj(oid);
> }
>
> /* gateway operations */
> --
> 1.8.3.2
>
More information about the sheepdog
mailing list