[Sheepdog] [PATCH v5 02/17] store: add dynamic mechanism to chain the available backend stores.
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Fri Jan 6 07:32:38 CET 2012
At Thu, 05 Jan 2012 19:10:32 +0800,
Liu Yuan wrote:
>
> On 01/05/2012 04:27 AM, MORITA Kazutaka wrote:
> > How about sending the driver name instead of its index? Then, we
> > don't need to maintain consistency between index_to_name() and
> > get_store_index().
>
>
> Yes, but seems that struct sd_so_req only have 7 bytes available, we
> have some limit to name the store driver, in assumption we don't create
> a new sd_xx_req struct.
SD_OP_MAKE_FS doesn't send any data after the header, so how about
sending the driver name as its data. What I mean is:
- set (strlen(driver_name) + 1) to hdr.data_length and wlen
- pass driver_name to the third argument of exec_req()
Thanks,
Kazutaka
More information about the sheepdog
mailing list