Ricardo M. Correia a0b5ae8aca Fix off-by-1 truncation of hw_serial when converting from integer to string, when writing to /proc/sys/kernel/spl/spl_hostid.
Fixes hostid mismatch which leads to assertion failure when the hostid/hw_serial is a 10-character decimal number:

$ zpool status
  pool: lustre
 state: ONLINE
lt-zpool: zpool_main.c:3176: status_callback: Assertion `reason == ZPOOL_STATUS_OK' failed.
zsh: 5262 abort      zpool status
2009-03-12 15:47:50 -07:00
2009-03-11 12:37:34 -07:00
2009-03-04 10:04:15 -08:00
2008-11-24 23:49:18 +00:00
2009-02-05 13:43:45 -08:00
2009-03-11 12:37:34 -07:00
2009-03-11 12:37:34 -07:00
2008-07-09 19:11:29 +00:00
2009-03-11 12:37:34 -07:00
2009-03-11 12:37:34 -07:00
2009-02-05 13:43:45 -08:00
2009-03-11 12:37:34 -07:00
2009-03-11 12:37:34 -07:00
S
Description
No description provided
122 MiB
Languages
C 70.2%
Shell 19.9%
Assembly 5.1%
M4 1.9%
Python 1.6%
Other 1.3%