Whamcloud - gitweb
LU-4887 lfsck: run all LFSCK scan types by default 78/10278/7
authorAndreas Dilger <andreas.dilger@intel.com>
Tue, 13 May 2014 13:07:02 +0000 (21:07 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 20 Jun 2014 03:07:50 +0000 (03:07 +0000)
commit4c4f74b0a581e139f3bf3db1a41d2b11594c039f
treeee66c99573cf6f3538a2388d3fb6980115f156a1
parent7ad24ad7978051c942381f66e04fd52bb9967dea
LU-4887 lfsck: run all LFSCK scan types by default

When running "lctl lfsck_start" run all available scan types by
default (scrub, layout, and namespace currently) if none is given.
If '-t' is given, run only the specified scan types. 'scrub' is
always run.

Rename the lfsck_type constants to use a LFSCK_TYPE_ prefix to be
more descriptive.  Add LFSCK_TYPE_ constants to wirecheck.
Add ltn_ prefix to lfsck_type_name structure.

Print the available types from the lfsck_types_names[] array in
the help message instead of hard-coding them in the help message.

Don't return an error if "lctl lfsck_stop" is used when stopped.

Fix up lfsck_namespace /proc stats to use more descriptive names.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I106483ade0bf07c2920dd95a263acdbe4e500c1e
Reviewed-on: http://review.whamcloud.com/10278
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
17 files changed:
lustre/doc/lctl.8
lustre/include/lustre/lustre_lfsck_user.h
lustre/include/lustre_lfsck.h
lustre/lfsck/lfsck_layout.c
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_namespace.c
lustre/mdd/mdd_lproc.c
lustre/ofd/lproc_ofd.c
lustre/ofd/ofd_io.c
lustre/ptlrpc/wirehdr.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanity-lfsck.sh
lustre/tests/sanity-scrub.sh
lustre/utils/lustre_lfsck.c
lustre/utils/wirecheck.c
lustre/utils/wirehdr.c
lustre/utils/wiretest.c