[sheepdog] [PATCH v2 2/2] collie: make `collie vdi list` not read vdi_inuse bitmap

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Fri Aug 24 08:41:11 CEST 2012


At Fri, 24 Aug 2012 14:30:42 +0800,
levin li wrote:
> 
> I think SD_NR_VDIS is big enough, it can contain up to 2097152
> vdi copy entries, 2097152 VDIs are more than enough for our cluster,
> and by this we don't need to allocate the 128M memory for such
> a request, what do you think about it?

I think the right way is:
 - allocate a small size (e.g. 4 MB)
 - iterate SD_OP_GET_VDI_COPIES until reading all copies

But the implementation would be a bit complicated.  How about
allocating SD_DATA_OBJ_SIZE bytes and leave it as TODO like
SD_OP_GET_OBJ_LIST for now?

Thanks,

Kazutaka



More information about the sheepdog mailing list