Whamcloud - gitweb
LU-957 lfsck: user space tools for LFSCK/scrub
authorFan Yong <yong.fan@whamcloud.com>
Wed, 4 Jul 2012 11:54:00 +0000 (19:54 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 6 Jul 2012 04:26:22 +0000 (00:26 -0400)
commit7cecfcffae9737f929a2cbc8067e093a4f85c3ba
tree265fcce93eec586019e7e9e0dc8be603a2f4881a
parentcf6334dedece61e31ebe1e6784ae8cf17f5398a5
LU-957 lfsck: user space tools for LFSCK/scrub

Control LFSCK/scrub by lctl commands:

1) lfsck_start: start LFSCK/scrub with specified parameters.

2) lfsck_stop: stop LFSCK/scrub on the specified MDT device.

3) The LFSCK/scrub status can be obtained through some special
lproc interface. For example: check OI scrub status by:
lctl get_param -n osd-ldiskfs.*.oi_scrub

Signed-off-by: Fan Yong <yong.fan@whamcloud.com>
Change-Id: I5828c18453c92162fa0dc211324b69d15ecd9fbc
Reviewed-on: http://review.whamcloud.com/3170
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
16 files changed:
lustre/include/lustre/lustre_lfsck_user.h
lustre/include/lustre_lib.h
lustre/mdd/mdd_device.c
lustre/mdd/mdd_internal.h
lustre/mdd/mdd_lfsck.c
lustre/mdt/mdt_handler.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-ldiskfs/osd_scrub.h
lustre/tests/sanity-scrub.sh
lustre/tests/scrub-performance.sh
lustre/tests/test-framework.sh
lustre/utils/Makefile.am
lustre/utils/lctl.c
lustre/utils/lustre_lfsck.c [new file with mode: 0644]
lustre/utils/obd.c
lustre/utils/obdctl.h