From: agk@sourceware.org <agk@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 ./WHATS_NEW tools/lvchange.c
Date: 13 Oct 2006 21:33:31 -0000 [thread overview]
Message-ID: <20061013213331.32322.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2006-10-13 21:33:31
Modified files:
. : WHATS_NEW
tools : lvchange.c
Log message:
Retain activation state after changing LV minor number with --force.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.468&r2=1.469
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvchange.c.diff?cvsroot=lvm2&r1=1.68&r2=1.69
--- LVM2/WHATS_NEW 2006/10/13 13:22:44 1.468
+++ LVM2/WHATS_NEW 2006/10/13 21:33:31 1.469
@@ -1,6 +1,7 @@
Version 2.02.12 -
===================================
- Propogate clustered flag in vgsplit and require resizeable flag.
+ Retain activation state after changing LV minor number with --force.
+ Propagate clustered flag in vgsplit and require resizeable flag.
Version 2.02.11 - 12th October 2006
===================================
--- LVM2/tools/lvchange.c 2006/07/10 19:39:14 1.68
+++ LVM2/tools/lvchange.c 2006/10/13 21:33:31 1.69
@@ -294,16 +294,15 @@
log_error("Major number must be specified with -My");
return 0;
}
- if (lv_info(cmd, lv, &info, 0) && info.exists &&
- !arg_count(cmd, force_ARG)) {
- if (yes_no_prompt("Logical volume %s will be "
- "deactivated temporarily. "
- "Continue? [y/n]: ", lv->name) == 'n') {
- log_print("%s device number not changed.",
- lv->name);
- return 0;
- }
+ if (lv_info(cmd, lv, &info, 0) && info.exists)
active = 1;
+ if (active && !arg_count(cmd, force_ARG) &&
+ yes_no_prompt("Logical volume %s will be "
+ "deactivated temporarily. "
+ "Continue? [y/n]: ", lv->name) == 'n') {
+ log_print("%s device number not changed.",
+ lv->name);
+ return 0;
}
log_verbose("Ensuring %s is inactive.", lv->name);
if (!deactivate_lv(cmd, lv)) {
next reply other threads:[~2006-10-13 21:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-13 21:33 agk [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-01-26 0:13 LVM2 ./WHATS_NEW tools/lvchange.c agk
2008-05-21 14:10 agk
2008-07-31 13:03 agk
2009-06-06 22:00 mbroz
2009-08-13 14:27 mornfall
2009-08-13 23:01 ` Alasdair G Kergon
2011-09-05 12:54 agk
2011-11-18 19:22 zkabelac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061013213331.32322.qmail@sourceware.org \
--to=agk@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.