Re: [sheepdog] [PATCH 3/3] add selectable object_size support of VDI operation (2/2)

2014-12-11 Thread Hitoshi Mitake
+ return object_size; } static inline uint64_t data_oid_to_idx(uint64_t oid) diff --git a/lib/fec.c b/lib/fec.c index c4e7a6f..fb40773 100644 --- a/lib/fec.c +++ b/lib/fec.c @@ -696,12 +696,13 @@ out: } void fec_decode_buffer(struct fec *ctx, uint8_t *input[], const int

Re: [sheepdog] [PATCH 3/3] add selectable object_size support of VDI operation (1/2)

2014-12-11 Thread Hitoshi Mitake
From: Hitoshi Mitake mitake.hitoshi@lab.ntt.co.jp To: Teruaki Ishizaki ishizaki.teruaki@lab.ntt.co.jp Cc: sheepdog@lists.wpkg.org Subject: Re: [sheepdog] [PATCH 3/3] add selectable object_size support of VDI operation In-Reply-To: 1418129364-29585-4-git-send-email-ishizaki.teruaki@lab.ntt.co.jp

Re: [sheepdog] [PATCH 3/3] add selectable object_size support of VDI operation (1/2)

2014-12-11 Thread Teruaki Ishizaki
@@ -451,10 +462,34 @@ static int vdi_create(int argc, char **argv) if (ret 0) return EXIT_USAGE; - if (size SD_OLD_MAX_VDI_SIZE 0 == vdi_cmd_data.store_policy) { + if (vdi_cmd_data.object_size) + old_max_total_size = +

[sheepdog] [PATCH 3/3] add selectable object_size support of VDI operation

2014-12-09 Thread Teruaki Ishizaki
Data object size was fix to 4MB and not selectable. This patch add feature to select data object size of VDI. If you want to use 8MB data object_size, specify the shift bit num. ex) dog vdi create -z 23 hogehoge 100M Signed-off-by: Teruaki Ishizaki ishizaki.teru...@lab.ntt.co.jp ---