[linux-lvm] new max tag length?

Oliver Rath rath at mglug.de
Wed Jan 10 16:46:49 UTC 2018


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




More information about the linux-lvm mailing list