linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] maximum length of logical volume name
@ 2013-11-06 15:04 Thanos Makatos
  2013-11-06 15:46 ` Zdenek Kabelac
  0 siblings, 1 reply; 2+ messages in thread
From: Thanos Makatos @ 2013-11-06 15:04 UTC (permalink / raw)
  To: linux-lvm@redhat.com

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?

--
Thanos Makatos
Software Engineer (XenServer Storage)
Citrix Systems Ltd.
Cambridge, UK

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

* Re: [linux-lvm] maximum length of logical volume name
  2013-11-06 15:04 [linux-lvm] maximum length of logical volume name Thanos Makatos
@ 2013-11-06 15:46 ` Zdenek Kabelac
  0 siblings, 0 replies; 2+ messages in thread
From: Zdenek Kabelac @ 2013-11-06 15:46 UTC (permalink / raw)
  To: LVM general discussion and development

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

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

end of thread, other threads:[~2013-11-06 15:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-06 15:04 [linux-lvm] maximum length of logical volume name Thanos Makatos
2013-11-06 15:46 ` Zdenek Kabelac

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