]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: make file_truncate_file return error
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 18 Apr 2011 11:54:23 +0000 (14:54 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 22 Apr 2011 11:29:52 +0000 (14:29 +0300)
commit211061b60feaa70c269a9c566e94b554ba781fc5
treecb8281ecc961bff5bc46b0ed02aa6168dad4c0d9
parente9daefff43ef95c7a3b79122d172c04f4d086927
fs-tests: integck: make file_truncate_file return error

Teach 'file_truncate_file()' return an error to the caller if it fails
to open the file or to truncate it.

Additionally, check the error code from 'open()' in other places.

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