From: xufeng zhang <xufeng.zhang@windriver.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Bug: LVM2 create long name device failed but we can see it by run lvs
Date: Sat, 13 Nov 2010 15:34:31 +0800 [thread overview]
Message-ID: <4CDE3F87.8060705@windriver.com> (raw)
In-Reply-To: <20101112100604.GF28062@agk-dp.fab.redhat.com>
On 11/12/2010 06:06 PM, Alasdair G Kergon wrote:
> On Fri, Nov 12, 2010 at 05:38:32PM +0800, xufeng zhang wrote:
>
>> This is the bug description:
>> When we create a logic volume with long names(such as 125), LVM2 will
>> return "Name too long" error
>> and create volume failed. However, you will see it exist in volume group
>> if you run lvs command.
>> The reason is that when LVM2 create a empty device in lv_create_empty()
>> function, it didn't check the
>> length of device names, but the empty device activate failed afterward
>> because of too long name(vgname+lvname>128).
>>
> Thanks for reporting that.
>
> Presumably 'vgrename' needs a similar restriction.
>
Maybe I have made a mistake, I can't reproduce this bug in LVM2.2.02.76 now.
Thanks,
Xufeng Zhang
> Alasdair
>
>
>
prev parent reply other threads:[~2010-11-13 7:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-12 9:38 [linux-lvm] Bug: LVM2 create long name device failed but we can see it by run lvs xufeng zhang
2010-11-12 10:06 ` Alasdair G Kergon
2010-11-13 7:34 ` xufeng zhang [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=4CDE3F87.8060705@windriver.com \
--to=xufeng.zhang@windriver.com \
--cc=linux-lvm@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 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 NNTP newsgroup(s).