[sheepdog] [PATCH v2 4/7] md: add hot-plug and hot-unplug support

Liu Yuan namei.unix at gmail.com
Wed Apr 3 07:31:53 CEST 2013

On 04/03/2013 01:26 PM, MORITA Kazutaka wrote:
> Hmm, getting a write lock is not a good idea, but returning
> SD_RES_UNKNOWN to users is not good too.  How about simply setting
> zero to info->disk[i].size and continuing the job?  Then, users can
> know that something goes wrong with the disk when the size of it is
> zero.

I don't find a better error return value and looks hard to define a new
error type to describe this case. So return 0 could an good interim


More information about the sheepdog mailing list