]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: improve remountability logic
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 22 Apr 2011 16:52:27 +0000 (19:52 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 24 Apr 2011 16:12:30 +0000 (19:12 +0300)
commit0d209f581d2a9906b94a88325e9ea4b4249215db
treeef10ab9be1a507803952ff8229b0b1427feba383
parente2ef4cecc198371aae3fdaad5151aa7303dedb3e
fs-tests: integck: improve remountability logic

The integck test assumes that if the FS is rootfs then it cannot
re-mount it, otherwise it can. However, this is not true because the
tested FS can be not remountable even if it is not rootfs, e.g., if
'integck' lives on this FS and is executed from it.

This patch improves the integck logic and actually checks wheter it
is possible to re-mount the FS before starting the test.

Also, it makes sure that power cut testing is run only on re-mountable
FS, because we have to be able to clean the "corrupted" state of the
file-system.

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