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

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Wed Apr 3 04:28:28 CEST 2013


At Fri, 29 Mar 2013 13:49:41 +0800,
Liu Yuan wrote:
> +
> +static inline void md_del_disk(char *path)
> +{
> +	int idx = path_to_disk_idx(path);
> +
> +	if (idx < 0) {
> +		sd_eprintf("invalid path %s", path);
> +		return;
> +	}
> +	remove_disk(idx);
> +}

How about adding sd_iprintf to log this event like md_add_disk?  I
think this is relatively important information.

Thanks,

Kazutaka



More information about the sheepdog mailing list