diff options
author | NeilBrown <neilb@suse.de> | 2006-05-20 14:59:57 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-21 12:59:17 -0700 |
commit | 2adc7d47c4dbf684e69ee3980c158ff684dc170e (patch) | |
tree | ec4d2891f17b67c91f29d8b748ae49b9ef39a3e7 /drivers | |
parent | 8c7b389e532e964f07057dac8a56c43465544759 (diff) | |
download | op-kernel-dev-2adc7d47c4dbf684e69ee3980c158ff684dc170e.zip op-kernel-dev-2adc7d47c4dbf684e69ee3980c158ff684dc170e.tar.gz |
[PATCH] md: Fix inverted test for 'repair' directive.
We should be able to write 'repair' to /sys/block/mdX/md/sync_action,
however due to and inverted test, that always given EINVAL.
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index d7316b8..3ca3cfb 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -2252,7 +2252,7 @@ action_store(mddev_t *mddev, const char *page, size_t len) } else { if (cmd_match(page, "check")) set_bit(MD_RECOVERY_CHECK, &mddev->recovery); - else if (cmd_match(page, "repair")) + else if (!cmd_match(page, "repair")) return -EINVAL; set_bit(MD_RECOVERY_REQUESTED, &mddev->recovery); set_bit(MD_RECOVERY_SYNC, &mddev->recovery); |