From: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
To: lvm-devel@redhat.com
Subject: Re: [LVM2 PATCH 2/2] lvrename: add mirrored LV support
Date: Wed, 01 Aug 2007 17:33:42 -0400 [thread overview]
Message-ID: <46B0FC36.8060604@ce.jp.nec.com> (raw)
In-Reply-To: <24987A0D-5C3A-4339-BCB8-F387BBC6A1A1@redhat.com>
Hi Jon,
Thanks for testing and reviewing.
Jonathan Brassow wrote:
>> - if ((lv->status & MIRRORED) ||
>> - (lv->status & MIRROR_LOG) ||
>> - (lv->status & MIRROR_IMAGE)) {
>> - log_error("Mirrored LV, \"%s\" cannot be renamed: %s",
>> - lv->name, strerror(ENOSYS));
>> - return 0;
>> - }
>> -
>
> I don't think you want to remove this wholesale. Testing reveals that
> you are allowed to change a sub-lv name by itself, which is not
> something we want, I don't think. Instead, leave the checks in for
> MIRROR_LOG and MIRROR_IMAGE.
You are right.
I didn't intend to remove the limitation.
I fixed it and modified 2 other parts:
- Removed "Failed on <LV name>" messages from _for_each_sublv(),
as they have no useful information.
Callback function is responsible to put necessary info about
failure. Added a comment about it.
- Changed _rename_sub_lv() to return success if it can't
determine a new name for the sub LV.
e.g. if "lv1" is a sub LV of "lv0", renaming "lv0" will
success without changing "lv1".
This situation won't happen with current LVM2 code.
But if such LVs exist, I think expected behaviour is leaving
them unchanged and renaming others as far as possible.
Revised patch is attached.
(and fixed subject to "2/2" as it should have been)
Thanks,
--
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2-lvrename-support-mirror.patch
Type: text/x-patch
Size: 4821 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20070801/45b86bed/attachment.bin>
prev parent reply other threads:[~2007-08-01 21:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-27 15:32 [LVM2 PATCH 1/2] lvrename: add mirrored LV support Jun'ichi Nomura
2007-08-01 19:21 ` Jonathan Brassow
2007-08-01 21:33 ` Jun'ichi Nomura [this message]
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=46B0FC36.8060604@ce.jp.nec.com \
--to=j-nomura@ce.jp.nec.com \
--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.