Whamcloud - gitweb
LU-8300 lfsck: pass LOC_F_NEW when create new object 68/20868/3
authorFan Yong <fan.yong@intel.com>
Fri, 13 May 2016 15:44:35 +0000 (23:44 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 22 Sep 2016 03:04:35 +0000 (03:04 +0000)
commit1b00b45a6abd419a5c5dac67fee56d6f24100d23
tree39a59742e8cef6a26a6e0bb34b32e30fd4aec453
parentcecde8bdb4913fd4405d425b0bf3aead03181e9d
LU-8300 lfsck: pass LOC_F_NEW when create new object

For lfsck_create_lpf() case, we know that the target object of
'.lustre/lost+found/MDTxxxx' does not exist, need to pass the
lu_object_conf parameter 'LOC_F_NEW' to the lower layer, then
the OSD will not return -115 to the LFSCK if OI files lost.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I0c348dea99e7ff98f432e09a9664c6ba46567f11
Reviewed-on: http://review.whamcloud.com/20868
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_lib.c