linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] new max tag length?
@ 2018-01-07  1:04 Oliver Rath
  2018-01-07  2:52 ` Alasdair G Kergon
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Rath @ 2018-01-07  1:04 UTC (permalink / raw)
  To: LVM general discussion and development

Hi List,

Ive read here, the max length of a tag is 128:
https://www.suse.com/documentation/sles11/stor_admin/data/lvmtagging.html

But the following command works fine:

sudo lvchange --addtag `printf 'z%.0s' {1..66666}` levg/t8

What is actual the max length? When was the change?

Tfh!

Oliver

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] new max tag length?
  2018-01-07  1:04 [linux-lvm] new max tag length? Oliver Rath
@ 2018-01-07  2:52 ` Alasdair G Kergon
  2018-01-10 16:46   ` Oliver Rath
  0 siblings, 1 reply; 3+ messages in thread
From: Alasdair G Kergon @ 2018-01-07  2:52 UTC (permalink / raw)
  To: Oliver Rath; +Cc: LVM general discussion and development

On Sun, Jan 07, 2018 at 02:04:06AM +0100, Oliver Rath wrote:
> Ive read here, the max length of a tag is 128:
> https://www.suse.com/documentation/sles11/stor_admin/data/lvmtagging.html

The original spec for this work remains in the source tree,
docs/tagging.spec:

+ 1) Tag character set: A-Za-z0-9_+.- 
+    Can't start with hyphen & max length is 128 (NAME_LEN).


Then if you look at WHATS_NEW:

Version 2.02.77 - 22nd November 2010
====================================
...
  Remove tag length restriction and allow / = ! : # & characters.

Alasdair

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] new max tag length?
  2018-01-07  2:52 ` Alasdair G Kergon
@ 2018-01-10 16:46   ` Oliver Rath
  0 siblings, 0 replies; 3+ messages in thread
From: Oliver Rath @ 2018-01-10 16:46 UTC (permalink / raw)
  To: linux-lvm

Hi Alasdair,

thank you very much for the hint! But .. (see below)


On 07.01.2018 03:52, Alasdair G Kergon wrote:
> On Sun, Jan 07, 2018 at 02:04:06AM +0100, Oliver Rath wrote:
>> Ive read here, the max length of a tag is 128:
>> https://www.suse.com/documentation/sles11/stor_admin/data/lvmtagging.html
> The original spec for this work remains in the source tree,
> docs/tagging.spec:
>
> + 1) Tag character set: A-Za-z0-9_+.- 
> +    Can't start with hyphen & max length is 128 (NAME_LEN).
>

Ive tried much more then 65000 chars and it worked:

# lvchange --addtag `printf 'z%.0s' {1..77777}` levg/testsnap
  Logical volume levg/testsnap changed.

# lvs -o lv_tags levg/testsnap
... [lots of z´s] ...

Its definitly more than 128 characters .. Whats wrong now?

Regards,
Oliver

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-10 16:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-07  1:04 [linux-lvm] new max tag length? Oliver Rath
2018-01-07  2:52 ` Alasdair G Kergon
2018-01-10 16:46   ` Oliver Rath

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).