Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jul 2013 22:50:10 -0700
From:      Selphie Keller <selphie.keller@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   GPT issues with device path lengths involving make_dev_physpath_alias
Message-ID:  <CAAhz9O=QN7OLWkxrOkiAnNPQmpFBKYPGSLDmVyYKYevKLawdTg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
hello hackers,

I recently ran into a issue with a storage server that has some of the
drives in gpt vs mbr, tracked it down to a 64 char limit that is preventing
aliases in function make_dev_physpath_alias. I was curious if there was any
reason why this couldn't be bumped from 64 to 128 which would make room for
the device paths of gpt roughly around 94 and 96 chars long.

- #define SPECNAMELEN
<http://fxr.watson.org/fxr/ident?im=3;i=SPECNAMELEN>;     63
  */* max length of devicename */
+ *#define SPECNAMELEN
<http://fxr.watson.org/fxr/ident?im=3;i=SPECNAMELEN>;     127
   */* max length of devicename */*


http://fxr.watson.org/fxr/source/sys/param.h#L106

Jul 14 22:10:17 fbsd9 kernel: make_dev_physpath_alias: WARNING - Unable to
alias gptid/4d177c56-ce17-26e3-843e-9c8a9faf1e0f to enc@n5003048000ba7d7d
/type@0/slot@b/elmdesc@Slot_11/gptid/4d177c56-ce17-26e3-843e-9c8a9faf1e0f -
path too long
Jul 14 22:10:17 fbsd9 kernel: make_dev_physpath_alias: WARNING - Unable to
alias gptid/4b1caf38-d967-24ee-c3a0-badff404e7ed to enc@n5003048000ba7d7d
/type@0/slot@5/elmdesc@Slot_05/gptid/4b1caf38-d967-24ee-c3a0-badff404e7ed -
path too long

-Selphie (Estella Mystagic)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAhz9O=QN7OLWkxrOkiAnNPQmpFBKYPGSLDmVyYKYevKLawdTg>