]> git.proxmox.com Git - mirror_spl-debian.git/commit - module/spl/spl-proc.c
Fix off-by-1 truncation of hw_serial when converting from integer to string, when...
authorRicardo M. Correia <Ricardo.M.Correia@Sun.COM>
Thu, 12 Mar 2009 21:23:34 +0000 (21:23 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 12 Mar 2009 22:47:50 +0000 (15:47 -0700)
commita0b5ae8acaaf63fa2378a6d062e66fdf99387625
tree998eb5f4711122c5d67d07547ec45181e7beae53
parent6c33eb816268ef3fef9bb8ca9079bb46aad26605
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
module/spl/spl-proc.c