summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2014-09-15 22:04:14 +0100
committerAlasdair G Kergon <agk@redhat.com>2014-09-15 22:04:14 +0100
commite9216eedfe8189947c506041d8fc9e879fac6d58 (patch)
tree9da3b61ada4dec51f049c37c4679809c39685c1c
parent2360ce3551f2989f1cc2af06c3d3a0a0f1429bce (diff)
downloadlvm2-e9216eedfe8189947c506041d8fc9e879fac6d58.tar.gz
cleanup: fix last commit
-rw-r--r--tools/lvchange.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lvchange.c b/tools/lvchange.c
index c3d0b6a08..3ac5165a6 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -287,7 +287,7 @@ static int lvchange_resync(struct cmd_context *cmd, struct logical_volume *lv)
dm_list_init(&device_list);
- if (lv_is_mirrored(lv) && !seg_is_raid(seg)) {
+ if (!lv_is_mirrored(lv) && !seg_is_raid(seg)) {
log_error("Unable to resync %s. It is not RAID or mirrored.",
lv->name);
return 0;