Whamcloud - gitweb
LU-11681 lfsck: misc fixes for dangling entry repair 27/33927/11
authorLai Siyao <lai.siyao@intel.com>
Wed, 12 Dec 2018 16:04:12 +0000 (00:04 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Aug 2019 07:52:42 +0000 (07:52 +0000)
commita6dafda245a4ee4c5a86f585914cf0dde87e420e
treec417845a2e9bd34f5a52c5e49de57258e88f4652
parentef12cbccb0a5c50da0bb9c4c0bf17e51df5ca91b
LU-11681 lfsck: misc fixes for dangling entry repair

* lock child in dangling entry repair.
* if child is directory, create it as plain directory, because
  it may have shards already, which will be inserted later, besides,
  it may be remote, and creating striped directory remotely is not
  supported.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ide0d90f99e6d24f4a9507d98bbc7ad7f876a907d
Reviewed-on: https://review.whamcloud.com/33927
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_namespace.c