]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: abuse random_offset field nicer
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 11 Apr 2011 11:27:46 +0000 (14:27 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 18 Apr 2011 14:44:44 +0000 (17:44 +0300)
commit191071e9fcb711cd89c8c57e51937da525039c8b
treeebbd36a65f1233989a5aa12efae33d2f1a07360a
parenta57bd02b9dadfa4edbc8e77f075816c6c9d08e39
fs-tests: integck: abuse random_offset field nicer

Currently integck uses the 'random_offset' filed to store the new file
length sometimes, thus abusing this field. But we can do this nicer -
introduce an anonymous union and add 'new_length' filed which will be
used instead of 'random_offset' to make the code look nicer.

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