summaryrefslogtreecommitdiffstats
path: root/tools/lvresize.c
diff options
context:
space:
mode:
authorPetr Rockai <prockai@redhat.com>2007-06-28 17:33:44 +0000
committerPetr Rockai <prockai@redhat.com>2007-06-28 17:33:44 +0000
commite7ddf4168d2c0283efe4764e89901bdca8838f93 (patch)
treea0bdb23ff8aa689dd9df96ead8a35174c6a0211d /tools/lvresize.c
parentba117ad80e1b8f0aafa80601b3f6970405b772e6 (diff)
downloadlvm2-e7ddf4168d2c0283efe4764e89901bdca8838f93.tar.gz
lvm2-e7ddf4168d2c0283efe4764e89901bdca8838f93.tar.xz
lvm2-e7ddf4168d2c0283efe4764e89901bdca8838f93.zip
Make warnings go to stderr. Change log_warn to that effect, log_print
continues to send messages to stdout.
Diffstat (limited to 'tools/lvresize.c')
-rw-r--r--tools/lvresize.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/lvresize.c b/tools/lvresize.c
index c9fee438..46d7a3b9 100644
--- a/tools/lvresize.c
+++ b/tools/lvresize.c
@@ -155,14 +155,14 @@ static int _lvresize(struct cmd_context *cmd, struct lvresize_params *lp)
if (vg->fid->fmt->features & FMT_SEGMENTS)
lp->stripes = arg_uint_value(cmd, stripes_ARG, 1);
else
- log_print("Varied striping not supported. Ignoring.");
+ log_warn("Varied striping not supported. Ignoring.");
}
if (arg_count(cmd, mirrors_ARG)) {
if (vg->fid->fmt->features & FMT_SEGMENTS)
lp->mirrors = arg_uint_value(cmd, mirrors_ARG, 1) + 1;
else
- log_print("Mirrors not supported. Ignoring.");
+ log_warn("Mirrors not supported. Ignoring.");
if (arg_sign_value(cmd, mirrors_ARG, 0) == SIGN_MINUS) {
log_error("Mirrors argument may not be negative");
return 0;
@@ -182,7 +182,7 @@ static int _lvresize(struct cmd_context *cmd, struct lvresize_params *lp)
}
if (!(vg->fid->fmt->features & FMT_SEGMENTS))
- log_print("Varied stripesize not supported. Ignoring.");
+ log_warn("Varied stripesize not supported. Ignoring.");
else if (arg_uint_value(cmd, stripesize_ARG, 0) > vg->extent_size) {
log_error("Reducing stripe size %s to maximum, "
"physical extent size %s",
@@ -447,7 +447,7 @@ static int _lvresize(struct cmd_context *cmd, struct lvresize_params *lp)
if (lp->resize == LV_REDUCE) {
if (lp->argc)
- log_print("Ignoring PVs on command line when reducing");
+ log_warn("Ignoring PVs on command line when reducing");
} else if (!(pvh = lp->argc ? create_pv_list(cmd->mem, vg, lp->argc,
lp->argv, 1) : &vg->pvs)) {
stack;
@@ -469,13 +469,13 @@ static int _lvresize(struct cmd_context *cmd, struct lvresize_params *lp)
}
if (info.exists && !lp->resizefs && (lp->resize == LV_REDUCE)) {
- log_print("WARNING: Reducing active%s logical volume "
+ log_warn("WARNING: Reducing active%s logical volume "
"to %s", info.open_count ? " and open" : "",
display_size(cmd, (uint64_t) lp->extents *
vg->extent_size));
- log_print("THIS MAY DESTROY YOUR DATA "
- "(filesystem etc.)");
+ log_warn("THIS MAY DESTROY YOUR DATA "
+ "(filesystem etc.)");
if (!arg_count(cmd, force_ARG)) {
if (yes_no_prompt("Do you really want to "