mdadm should not wait indefinitely when it trys to reset superblock on device which is busy (cannot be opened). Signed-off-by: Artur Wojcik <artur.wojcik@xxxxxxxxx> --- Kill.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Kill.c b/Kill.c index 63442a6..a65b865 100644 --- a/Kill.c +++ b/Kill.c @@ -46,7 +46,7 @@ int Kill(char *dev, struct supertype *st, int force, int quiet, int noexcl) fprintf(stderr, Name ": Couldn't open %s for write - not zeroing\n", dev); close(fd); - return 1; + return 2; } if (st == NULL) st = guess_super(fd); -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html