Whamcloud - gitweb
LU-11111 lfsck: skip orphan processing
LFSCK can reconnect a recently-deleted orphan object back
into the normal namespace when it shouldn't. This can
cause access to the deleted data (potential security risk),
and sometimes cause an assertion if orphan is later deleted.
Skip LFSCK on orphan objects. Fix the handling of the
LUSTRE_ORPHAN_FL in both osd-zfs and osd-ldiskfs so that
la_valid |= LA_FLAGS is set when la_flags |= LUSTRE_ORPHAN_FL
is set, otherwise the upper layers cannot properly detect it.
Clean up alignment of flags values and provide hex equivalents
so that they are more easily referenced during debugging.
Signed-off-by: Alexey Lyashkov <c17817@cray.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I9b2809b95efa4b3c3e3b2c7d0a501624ed743ede
Reviewed-on: https://review.whamcloud.com/32959
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>