Whamcloud - gitweb
LU-4930 llite: add error handler in inode prepare phase 70/10170/6
authorwang di <di.wang@intel.com>
Wed, 30 Apr 2014 12:09:13 +0000 (05:09 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 5 May 2014 21:34:28 +0000 (21:34 +0000)
commit1c3b697d82666790ca7c6f384f0ec0112fd769b9
treec060402a3c68f540e82ddcb04b0130f7833824a1
parent18667c0697276c0038f0237a9444cbb132d30fbd
LU-4930 llite: add error handler in inode prepare phase

Add error handler during inode inialization, so inode will
become bad inode if something bad happens during inode prepare
phase, otherwise the striped directory will not get its layout
and being mis-regarded as normal directory.

Signed-off-by: wang di <di.wang@intel.com>
Change-Id: I1a08a18f28d4eec1ab7dc7e13fa39585ff65deeb
Reviewed-on: http://review.whamcloud.com/10170
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/namei.c