public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: prajnoha@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW lib/commands/toolcontext.c li ... Date: Thu, 09 Sep 2010 13:07:00 -0000 [thread overview] Message-ID: <20100909130715.9657.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: prajnoha@sourceware.org 2010-09-09 13:07:15 Modified files: . : WHATS_NEW lib/commands : toolcontext.c lib/format_text: archiver.c Log message: Reinitialize archive and backup handling on toolcontext refresh. For example, when using '--config "backup { ... }"' line, the values from lvm.conf (or default values) should be overridden. This patch adds reinitialisation of archive and backup handling on toolcontext refresh which makes these settings to be applied. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1727&r2=1.1728 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/commands/toolcontext.c.diff?cvsroot=lvm2&r1=1.103&r2=1.104 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/format_text/archiver.c.diff?cvsroot=lvm2&r1=1.33&r2=1.34 --- LVM2/WHATS_NEW 2010/08/30 18:37:42 1.1727 +++ LVM2/WHATS_NEW 2010/09/09 13:07:13 1.1728 @@ -1,5 +1,6 @@ Version 2.02.74 - ================================== + Reinitialize archive and backup handling on toolcontext refresh. Fix opprobriously slow I/O to cluster mirrors created with --nosync. Make poll_mirror_progress report PROGRESS_CHECK_FAILED if LV is not a mirror. Like mirrors, don't scan origins if ignore_suspended_devices() is set. --- LVM2/lib/commands/toolcontext.c 2010/08/11 12:14:23 1.103 +++ LVM2/lib/commands/toolcontext.c 2010/09/09 13:07:14 1.104 @@ -1343,6 +1343,9 @@ if (!_init_segtypes(cmd)) return 0; + if (!_init_backup(cmd)) + return 0; + cmd->config_valid = 1; reset_lvm_errno(1); --- LVM2/lib/format_text/archiver.c 2010/07/08 18:24:29 1.33 +++ LVM2/lib/format_text/archiver.c 2010/09/09 13:07:14 1.34 @@ -40,6 +40,8 @@ unsigned int keep_days, unsigned int keep_min, int enabled) { + archive_exit(cmd); + if (!(cmd->archive_params = dm_pool_zalloc(cmd->libmem, sizeof(*cmd->archive_params)))) { log_error("archive_params alloc failed"); @@ -156,6 +158,8 @@ int backup_init(struct cmd_context *cmd, const char *dir, int enabled) { + backup_exit(cmd); + if (!(cmd->backup_params = dm_pool_zalloc(cmd->libmem, sizeof(*cmd->backup_params)))) { log_error("backup_params alloc failed");
next reply other threads:[~2010-09-09 13:07 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-09-09 13:07 prajnoha [this message] -- strict thread matches above, loose matches on Subject: below -- 2012-02-01 13:42 zkabelac 2012-01-11 20:38 agk 2011-01-06 15:29 zkabelac 2010-11-11 17:29 agk 2010-08-11 12:14 prajnoha 2010-04-29 1:38 agk 2009-07-08 12:36 agk 2008-12-07 4:27 wysochanski 2007-07-28 12:26 meyering 2007-07-23 10:45 mbroz 2006-11-04 3:34 agk 2006-08-31 22:21 agk 2006-04-03 18:43 agk 2004-12-10 16:01 agk 2004-11-19 19:25 agk
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=20100909130715.9657.qmail@sourceware.org \ --to=prajnoha@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: linkBe 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).