From: wysochanski@sourceware.org <wysochanski@sourceware.org>
To: lvm-devel@redhat.com
Subject: LVM2 lib/commands/toolcontext.c tools/lvmcmdline.c
Date: 12 Dec 2008 03:30:42 -0000 [thread overview]
Message-ID: <20081212033042.3776.qmail@sourceware.org> (raw)
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2008-12-12 03:30:41
Modified files:
lib/commands : toolcontext.c
tools : lvmcmdline.c
Log message:
Create _init_globals() and call from bottom of create_toolcontext().
Move init_full_scan_done(0) and init_mirror_in_sync(0) from init_lvm()
after call to create_toolcontext() to _init_globals(), called from bottom
of create_toolcontext(). No functional change.
Author: Dave Wysochanski <dwysocha@redhat.com>
Acked-by: James Cameron <james.cameron@hp.com>
Acked-by: Alasdair G Kergon <agk@redhat.com>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/commands/toolcontext.c.diff?cvsroot=lvm2&r1=1.69&r2=1.70
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvmcmdline.c.diff?cvsroot=lvm2&r1=1.86&r2=1.87
--- LVM2/lib/commands/toolcontext.c 2008/12/11 03:36:16 1.69
+++ LVM2/lib/commands/toolcontext.c 2008/12/12 03:30:41 1.70
@@ -990,6 +990,13 @@
cmd->rand_seed = (unsigned) time(NULL) + (unsigned) getpid();
}
+static void _init_globals(struct cmd_context *cmd)
+{
+ init_full_scan_done(0);
+ init_mirror_in_sync(0);
+
+}
+
/* Entry point */
struct cmd_context *create_toolcontext(struct arg *the_args, unsigned is_static,
unsigned is_long_lived)
@@ -1090,6 +1097,8 @@
_init_rand(cmd);
+ _init_globals(cmd);
+
cmd->default_settings.cache_vgmetadata = 1;
cmd->current_settings = cmd->default_settings;
--- LVM2/tools/lvmcmdline.c 2008/12/11 03:36:16 1.86
+++ LVM2/tools/lvmcmdline.c 2008/12/12 03:30:41 1.87
@@ -1091,9 +1091,6 @@
if (!(cmd = create_toolcontext(_cmdline.the_args, is_static, 0)))
return_NULL;
- init_full_scan_done(0);
- init_mirror_in_sync(0);
-
return cmd;
}
next reply other threads:[~2008-12-12 3:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-12 3:30 wysochanski [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-06-27 23:43 LVM2 lib/commands/toolcontext.c tools/lvmcmdline.c agk
2008-12-11 3:36 wysochanski
2008-12-11 23:35 ` Alasdair G Kergon
2008-12-11 3:31 wysochanski
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=20081212033042.3776.qmail@sourceware.org \
--to=wysochanski@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.