From: Zdenek Kabelac <zkabelac@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] maximum length of logical volume name
Date: Wed, 06 Nov 2013 16:46:21 +0100 [thread overview]
Message-ID: <527A644D.50406@redhat.com> (raw)
In-Reply-To: <2368A3FCF9F7214298E53C823B0A48EC0B012F@AMSPEX01CL02.citrite.net>
Dne 6.11.2013 16:04, Thanos Makatos napsal(a):
> It seems that the maximum name length of a logical volume is 127 bytes (discovered by trial and error). Just to make sure we're using the correct value, is this value documented somewhere? Is it possible to retrieve it at run-time?
>
> --
Hmm it's not documented in manpages - but there are some header file defines:
lvm-string.h NAME_LEN and dm-ioctl.h DM_NAME_LEN being 128char with '\0' included.
other limits are in 'man lvm' VALID NAMES sections.
There are no plans to change this hardcoded settings - thus no reason to put
in run-time function to obtain its value.
I guess the size for lvm name is also limited by vgname size - since together
with '-' it cannot be longer then 127 chars (max dm device name size)
Zdenek
prev parent reply other threads:[~2013-11-06 15:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-06 15:04 [linux-lvm] maximum length of logical volume name Thanos Makatos
2013-11-06 15:46 ` Zdenek Kabelac [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=527A644D.50406@redhat.com \
--to=zkabelac@redhat.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).