]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: add recovery remounting function
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 20 Apr 2011 14:25:01 +0000 (17:25 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 22 Apr 2011 11:29:53 +0000 (14:29 +0300)
commitef4b2ceb552b5e32fa2defe7a48f1aec86b82333
treed8a23904cd1ffb3978e7567212236f914e6c1d7b
parent5fcab90f2d89d472bf0aa70682329e923689c449
fs-tests: integck: add recovery remounting function

When re-mountig to recover from the emulated power-cut failure then we should
do a bit less fancy things, e.g., we should not try to re-mount to R/O and R/W
modes forth and back, but we should instead just unmount directly.

Additionally, we should not die if mount fails because there may be a power
cut emulation during mounting. Thus, create a separate function for recovering
and try to recover in a loop.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
tests/fs-tests/integrity/integck.c