public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: agk@sourceware.org To: lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW lib/metadata/mirror.c tools/l ... Date: Tue, 19 Sep 2006 19:13:00 -0000 [thread overview] Message-ID: <20060919191342.763.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: agk@sourceware.org 2006-09-19 19:13:41 Modified files: . : WHATS_NEW lib/metadata : mirror.c tools : lvconvert.c Log message: Fix lvconvert mirror change case detection logic. Fix mirror log detachment so it correctly becomes a standalone LV. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.438&r2=1.439 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/mirror.c.diff?cvsroot=lvm2&r1=1.32&r2=1.33 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvconvert.c.diff?cvsroot=lvm2&r1=1.20&r2=1.21 --- LVM2/WHATS_NEW 2006/09/11 21:14:55 1.438 +++ LVM2/WHATS_NEW 2006/09/19 19:13:41 1.439 @@ -1,5 +1,7 @@ Version 2.02.10 - ================================== + Fix lvconvert mirror change case detection logic. + Fix mirror log detachment so it correctly becomes a standalone LV. Extend _check_contiguous() to detect single-area LVs. Include mirror log (untested) in _for_each_pv() processing. Use MIRROR_LOG_SIZE constant. --- LVM2/lib/metadata/mirror.c 2006/08/21 12:54:53 1.32 +++ LVM2/lib/metadata/mirror.c 2006/09/19 19:13:41 1.33 @@ -161,9 +161,11 @@ remove_log = 1; } - if (remove_log) { + if (remove_log && mirrored_seg->log_lv) { log_lv = mirrored_seg->log_lv; mirrored_seg->log_lv = NULL; + log_lv->status &= ~MIRROR_LOG; + log_lv->status |= VISIBLE_LV; } /* --- LVM2/tools/lvconvert.c 2006/09/02 01:18:17 1.20 +++ LVM2/tools/lvconvert.c 2006/09/19 19:13:41 1.21 @@ -344,8 +344,7 @@ lp->mirrors - 1); return 1; } - } - if (lp->mirrors > existing_mirrors) { + } else if (lp->mirrors > existing_mirrors) { /* FIXME Unless anywhere, remove PV of log_lv * from allocatable_pvs & allocate * (mirrors - existing_mirrors) new areas
next reply other threads:[~2006-09-19 19:13 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-09-19 19:13 agk [this message] -- strict thread matches above, loose matches on Subject: below -- 2010-08-06 15:38 jbrassow 2010-08-02 21:07 jbrassow 2010-08-02 19:03 jbrassow 2008-06-26 23:05 agk 2007-03-26 16:10 mbroz 2004-05-24 20:51 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=20060919191342.763.qmail@sourceware.org \ --to=agk@sourceware.org \ --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).