[sheepdog] [PATCH v2 1/3] sheep: notify VDI deletion to all nodes when deleting a VDI

MORITA Kazutaka morita.kazutaka at gmail.com
Wed Jul 11 09:04:44 CEST 2012


At Wed, 11 Jul 2012 14:42:45 +0800,
levin li wrote:
> @@ -435,11 +450,15 @@ static void delete_one(struct work *work)
>  		}
>  
>  		ret = remove_object(oid);
> -
>  		if (ret != SD_RES_SUCCESS)
>  			eprintf("remove object %" PRIx64 " fail, %d\n", oid, ret);
> +
> +		nr_deleted++;
>  	}
>  
> +	if (nr_deleted)
> +		notify_vdi_deletion(vdi_id);
> +

Should we notify it only when object cache is enabled?

Thanks,

Kazutaka



More information about the sheepdog mailing list