generic/018: use xfs_io and larger buffers for writes
authorDave Chinner <dchinner@redhat.com>
Tue, 26 May 2015 02:50:53 +0000 (12:50 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 26 May 2015 02:50:53 +0000 (12:50 +1000)
commit81d9c7039aa500ed506efb254433fcae14cb725b
tree8bb738c85fb9fbdb5d8fafb1b93d99ff9047664f
parent35a192a3a9e288bb73bbffb0d8002d779bb18855
generic/018: use xfs_io and larger buffers for writes

The test currently uses 'dd' directly for writing to files; instead
we should be using the xfs_io pwrite command.

Also, when we have a configuration that does not do delayed
allocation (e.g. dax), there is no guarantee that the files will be
allocated in the pattern expected, so do all the writes from a
single buffer so the kernel can allocate extents in the manner the
test expects as much as possible.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/018