public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
From: wysochanski@sourceware.org
To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org
Subject: LVM2 ./WHATS_NEW lib/locking/locking.c tools/l ...
Date: Tue, 03 Feb 2009 16:23:00 -0000 [thread overview]
Message-ID: <20090203162320.21473.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski@sourceware.org 2009-02-03 16:23:19
Modified files:
. : WHATS_NEW
lib/locking : locking.c
tools : lvmcmdline.c
Log message:
Move locking_type reading inside init_locking().
No functional change.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1033&r2=1.1034
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/locking/locking.c.diff?cvsroot=lvm2&r1=1.54&r2=1.55
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvmcmdline.c.diff?cvsroot=lvm2&r1=1.91&r2=1.92
--- LVM2/WHATS_NEW 2009/02/03 16:19:25 1.1033
+++ LVM2/WHATS_NEW 2009/02/03 16:23:19 1.1034
@@ -1,5 +1,6 @@
Version 2.02.45 -
===================================
+ Move locking_type reading inside init_locking().
Rename get_vgs() to get_vgnames() and clarify related error messages.
Allow clvmd to be built with all cluster managers & select one on cmdline.
Mention --with-clvmd=corosync in ./configure.
--- LVM2/lib/locking/locking.c 2008/12/18 05:27:18 1.54
+++ LVM2/lib/locking/locking.c 2009/02/03 16:23:19 1.55
@@ -208,11 +208,16 @@
/*
* Select a locking type
+ * type: locking type; if < 0, then read config tree value
*/
int init_locking(int type, struct cmd_context *cmd)
{
init_lockingfailed(0);
+ if (type < 0)
+ type = find_config_tree_int(cmd, "global/locking_type", 1);
+
+
switch (type) {
case 0:
init_no_locking(&_locking, cmd);
--- LVM2/tools/lvmcmdline.c 2008/12/19 14:43:02 1.91
+++ LVM2/tools/lvmcmdline.c 2009/02/03 16:23:19 1.92
@@ -995,8 +995,7 @@
if (arg_count(cmd, nolocking_ARG))
locking_type = 0;
else
- locking_type = find_config_tree_int(cmd,
- "global/locking_type", 1);
+ locking_type = -1;
if (!init_locking(locking_type, cmd)) {
log_error("Locking type %d initialisation failed.",
reply other threads:[~2009-02-03 16:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20090203162320.21473.qmail@sourceware.org \
--to=wysochanski@sourceware.org \
--cc=lvm-devel@redhat.com \
--cc=lvm2-cvs@sourceware.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).