Whamcloud - gitweb
LU-15886 lfsck: remove unreasonable assertions 47/47447/5
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 18 May 2022 22:21:52 +0000 (18:21 -0400)
committerLai Siyao <lai.siyao@whamcloud.com>
Thu, 19 May 2022 13:30:50 +0000 (09:30 -0400)
commit0c1f5aa5e20334746b22b4e215af5153de7d6f4a
tree14aa50557250c9f09cd34c843638d6b54e01e17f
parent1022e485b5260e3bca0e2acafaf807dffbb02c66
LU-15886 lfsck: remove unreasonable assertions

Remove unreasonable assertions in LFSCK code:
* lfsck->li_obj_dir and lfsck->li_lmv may be NULL if object wan't
  initialized successfully.
* orphan objects under ldiskfs /lost+found may not exist.
* object may not be directory in lfsck_verify_lpf()->
  lfsck_verify_linkea().
* for corner case
  (leh->leh_reccount == 0 && leh->leh_overflow_time != 0),
  LASSERT(ldata->ld_leh->leh_reccount > 0) will be triggerred in
  lfsck_namespace_linkea_clear_overflow(), remove this assertion,
  and this corner case can be handled correctly in current lfsck
  code.

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: If114c7882a2c083e83fcfac5981eddfa526d1426
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_namespace.c