Whamcloud - gitweb
LU-1689 tests: fix mount during e2fsck test
authorMinh Diep <mdiep@whamcloud.com>
Tue, 14 Aug 2012 07:44:02 +0000 (15:44 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 16 Aug 2012 07:45:17 +0000 (03:45 -0400)
commitcbf4c34d5e465b5e265a26c2d374cf1d1790a8d4
treeaf381aeac0f0662f27e26dbfece3c896ebf4f894
parent60a988f2c83ac4625ba0d6d0325116c90cf26127
LU-1689 tests: fix mount during e2fsck test

The current mmp test 8 (mount during e2fsck) has two time issues:
1) the mount operation may start before e2fsck
2) the e2fsck operation may stop before mount

This patch fixes the above issues by providing enough time for e2fsck
operation to be started before mount operation, and setting the
superblock free_blocks_count field with 0 to force e2fsck checking
the Lustre server target device, which provides enough time for
the mount operation to be started during the e2fsck operation.

Test-Parameters: testlist=mmp
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Signed-off-by: Yu Jian <yujian@whamcloud.com>
Change-Id: I37e07ffdb6669dfabceaab5ef242460abe204ba0
Reviewed-on: http://review.whamcloud.com/3569
Reviewed-by: Li Wei <liwei@whamcloud.com>
Reviewed-by: Chris Gearing <chris.gearing@intel.com>
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/tests/Makefile.am
lustre/tests/e2fsck.exp [new file with mode: 0755]
lustre/tests/mmp.sh