xfstests: allow override of XFS_IOC_DIOINFO
authorEric Sandeen <sandeen@redhat.com>
Mon, 20 Jan 2014 02:28:38 +0000 (13:28 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 20 Jan 2014 02:28:38 +0000 (13:28 +1100)
commit6571cea7eba3e4f73b508af29bf0338b9a73934c
tree333d004c2081d909a71a2df967a7e6deb9e18061
parent94d3f7781901d33e4e61c3a9107c666399281887
xfstests: allow override of XFS_IOC_DIOINFO

This change allows xfstests runs to simulate apps
which don't bother to call XFS_IOC_DIOINFO, and simply
issue DIO in sizes and alignments of its own choosing.

So i.e.:

# export XFS_DIO_MIN=512

prior to an xfstests run, and these test binaries
should issue 512-aligned DIOs instead of whatever
XFS_IOC_DIOINFO says (i.e. instead of maybe 4k).

(This is in preparation for allowing 512 IOs on
"advanced format" 512/4k disks, when xfs has an
internal 4k sector size).

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
ltp/doio.c
ltp/fsstress.c
ltp/iogen.c
src/unwritten_sync.c
tests/btrfs/022 [changed mode: 0644->0755]