From: NeilBrown Date: Wed, 11 May 2011 04:26:20 +0000 (+1000) Subject: md: reject a re-add request that cannot be honoured. X-Git-Tag: v3.0-rc1~358^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bedd86b7773fd97f0d708cc0c371c8963ba7ba9a;p=pandora-kernel.git md: reject a re-add request that cannot be honoured. The 'add_new_disk' ioctl can be used to add a device either as a spare, or as an active disk that just needs to be resynced based on write-intent-bitmap information (re-add) Currently if a re-add is requested but fails we add as a spare instead. This makes it impossible for user-space to check for failure. So change to require that a re-add attempt will either succeed or completely fail. User-space can then decide what to do next. Signed-off-by: NeilBrown --- Reading git-diff-tree failed