Whamcloud - gitweb
LU-4689 hsm: count NULL terminator in hai_first/hal_size 68/9468/2
authorPeng Tao <bergwolf@gmail.com>
Thu, 27 Feb 2014 08:07:39 +0000 (16:07 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 11 Mar 2014 13:24:58 +0000 (13:24 +0000)
commitdbe8d37053cea62dba524f3af10c6cfa7720251d
treed329b0f57548fca215a943cdd9bfd04cd26dde48
parent22fb652b67f44319f8997b8b852a19bb44dbb12a
LU-4689 hsm: count NULL terminator in hai_first/hal_size

If fsname is 8-byte aligned, hai_first fails to count the ending NULL
terminator causing hai to directly attached after fsname and future
hai_first will return a different position for first hai.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
Change-Id: I5e9e1f48f99b4743b2d5b93397e06f6becabeb26
Reviewed-on: http://review.whamcloud.com/9431
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/9468
lustre/include/lustre/lustre_user.h