Whamcloud - gitweb
LU-9894 lfsck: Print correct lfsck start info 65/30265/2
authorPatrick Farrell <paf@cray.com>
Mon, 21 Aug 2017 09:45:05 +0000 (04:45 -0500)
committerJohn L. Hammond <john.hammond@intel.com>
Tue, 19 Dec 2017 19:36:36 +0000 (19:36 +0000)
commiteb339c2df4b08a73d329a19820616fc7fb25216f
treed809acf68b6e8c753da8b06da16008b2975d3ef6
parent7cdc62964119f5f13070d0549d157e4a6135dc5c
LU-9894 lfsck: Print correct lfsck start info

When printing which scan type was started, lfsck iterates
through an array of types and compares the given type to
the types in the array.  Type numbers are a bit mask.

However, LFSCK_TYPES_SUPPORTED and LFSCK_TYPES_DEF are the
full mask, and they are the first in the array.  This means
we always match LFSCK_TYPES_SUPPORTED, which results in
always printing "all" as the type of scan.

Reorder the struct to increasing bit order to fix this.

Test-Parameters: trivial testlist=sanity-scrub,sanity-lfsck
Lustre-change: https://review.whamcloud.com/28604
Lustre-commit: 0c6805b2a0d575331dff0c22a657da91f61a1809

Signed-off-by: Patrick Farrell <paf@cray.com>
Change-Id: Ibc82369ff6531b56ceda4b1c0a833720dc61f3f4
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/30265
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/utils/lustre_lfsck.c