GPT issues with device path lengths involving make_dev_physpath_alias

Selphie Keller selphie.keller at gmail.com
Mon Jul 15 05:50:11 UTC 2013


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 at n5003048000ba7d7d
/type at 0/slot at b/elmdesc at 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 at n5003048000ba7d7d
/type at 0/slot at 5/elmdesc at Slot_05/gptid/4b1caf38-d967-24ee-c3a0-badff404e7ed -
path too long

-Selphie (Estella Mystagic)


More information about the freebsd-hackers mailing list