public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/tools lvchange.c vgchange.c Date: Fri, 28 Oct 2011 20:29:00 -0000 [thread overview] Message-ID: <20111028202907.6640.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2011-10-28 20:29:07 Modified files: tools : lvchange.c vgchange.c Log message: Thin works only with exclusive activation Enforce exclusive activation with thin targets. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvchange.c.diff?cvsroot=lvm2&r1=1.131&r2=1.132 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgchange.c.diff?cvsroot=lvm2&r1=1.125&r2=1.126 --- LVM2/tools/lvchange.c 2011/10/28 20:28:01 1.131 +++ LVM2/tools/lvchange.c 2011/10/28 20:29:06 1.132 @@ -135,7 +135,9 @@ if (!deactivate_lv(cmd, lv)) return_0; } else { - if (lv_is_origin(lv) || (activate == CHANGE_AE)) { + if ((activate == CHANGE_AE) || + lv_is_origin(lv) || + lv_is_thin_type(lv)) { log_verbose("Activating logical volume \"%s\" " "exclusively", lv->name); if (!activate_lv_excl(cmd, lv)) --- LVM2/tools/vgchange.c 2011/10/28 20:28:01 1.125 +++ LVM2/tools/vgchange.c 2011/10/28 20:29:06 1.126 @@ -149,10 +149,10 @@ stack; continue; } - } else if (lv_is_origin(lv) || - lv_is_thin_pool(lv) || - lv_is_thin_volume(lv) || - (activate == CHANGE_AE)) { + } else if ((activate == CHANGE_AE) || + lv_is_origin(lv) || + lv_is_thin_type(lv)) { + /* FIXME: duplicated test code with lvchange */ if (!activate_lv_excl(cmd, lv)) { stack; continue;
next reply other threads:[~2011-10-28 20:29 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-10-28 20:29 zkabelac [this message] 2011-11-03 14:41 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=20111028202907.6640.qmail@sourceware.org \ --to=zkabelac@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).