Whamcloud - gitweb
LU-2856 mdt: Workaround for filenames w/zero hash
authorDaniel Kobras <d.kobras@science-computing.de>
Wed, 10 Apr 2013 12:25:12 +0000 (14:25 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 30 Apr 2013 21:57:09 +0000 (17:57 -0400)
commited1e6b0698c1902ece59dd7d082a1ba0e4feb0d2
treee8cf32e35ecd3de64772f32f91d5ee04aafcbf69
parent5661651b2cc6414686e7da581589c2ea0e1f1969
LU-2856 mdt: Workaround for filenames w/zero hash

Zero is a valid return value of full_name_hash(), but
consumers of mlh_pdo_hash don't handle this case correctly.
Work around problems by consistently mapping zero hashes to
a different value.

Signed-off-by: Daniel Kobras <d.kobras@science-computing.de>
Change-Id: I8b2622cb9b04d9f005f8e414ad35102155820c7d
Reviewed-on: http://review.whamcloud.com/6166
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
lustre/mdt/mdt_handler.c