From 58366c058e9268842e498ea26f821b4404c25bc9 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 5 Sep 2011 12:54:29 +0000 Subject: [PATCH] Remove incorrect requirement for -j or -m from lvchange error message. --- WHATS_NEW | 1 + tools/lvchange.c | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index c1db1610d..4c3631c9f 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.89 - ================================== + Remove incorrect requirement for -j or -m from lvchange error message. Fix unsafe table load when splitting off smaller mirror from a larger one. Use size_t return type for text_vg_export_raw() and export_vg_to_buffer(). Add configure --enable-lvmetad for building the (experimental) LVMetaD. diff --git a/tools/lvchange.c b/tools/lvchange.c index 7979ffa63..1a5cce6b4 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -715,10 +715,8 @@ int lvchange(struct cmd_context *cmd, int argc, char **argv) if (!update && !arg_count(cmd, available_ARG) && !arg_count(cmd, refresh_ARG) && - !arg_count(cmd, monitor_ARG) && !arg_count(cmd, poll_ARG) && - /* for persistent_ARG */ - !arg_count(cmd, minor_ARG) && !arg_count(cmd, major_ARG)) { - log_error("Need 1 or more of -a, -C, -j, -m, -M, -p, -r, " + !arg_count(cmd, monitor_ARG) && !arg_count(cmd, poll_ARG)) { + log_error("Need 1 or more of -a, -C, -M, -p, -r, " "--resync, --refresh, --alloc, --addtag, --deltag, " "--monitor or --poll"); return EINVALID_CMD_LINE;