256: use more specific grep for file size
authorEric Sandeen <sandeen@sandeen.net>
Fri, 17 Feb 2012 20:43:12 +0000 (14:43 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 17 Feb 2012 20:43:12 +0000 (14:43 -0600)
commit28c0fadd20543ee272811db3165566a92fb34dc3
tree31e2288142c6f2ce59a3183babc737634054c381
parent61b1a7d68ccdd6fb0fe07c614a0c3f4086ae8a84
256: use more specific grep for file size

Removing the "-F" flag in xfs_io changed stat output.

Before the change when -F was used, whether or not the file
was on xfs, it skipped the extra FSGEOM call.  Now that -F is
removed, it calls FSGEOM if the file is on an xfs fs.  The "size"
grep in test 256 was a bit too loose and matched 2 lines if the
FSGEOM output was present, breaking the test.

A more specific grep for stat.size fixes this.

Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
256