]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/223, xfs/203: IO is not well aligned
authorDave Chinner <dchinner@redhat.com>
Tue, 26 May 2015 02:51:53 +0000 (12:51 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 26 May 2015 02:51:53 +0000 (12:51 +1000)
commit6bd4b513af0478fb5f44b535ceea12a5b3b94165
treebbf3fdd51848c2f6a66f3909c2446bddbe801ed5
parent81d9c7039aa500ed506efb254433fcae14cb725b
generic/223, xfs/203: IO is not well aligned

On certain configurations (e.g. MOUNT_OPTIONS="-o dax") we get
different allocation patterns due to the writes being done in
multiple pwrite() calls. e.g. the write is 8k, but the buffer size
is 4k, and so the filesystem sees 4k writes. If the filesytem is not
using delayed allocation, then the allocation context is a 4k write
rather than an 8k write and so they don't get appropriately aligned.

Fix this by making the write buffer the same size and the writes
being done.

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/223
tests/xfs/203