public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] generic: fixes for different allocation behaviours
@ 2015-05-14  1:53 Dave Chinner
  2015-05-14  1:53 ` [PATCH 1/3] generic/018: use xfs_io and larger buffers for writes Dave Chinner
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Dave Chinner @ 2015-05-14  1:53 UTC (permalink / raw)
  To: fstests

Hi folks,

These 3 patches address failures I found when testing the XFS DAX
functionality. DAX disables delayed allocation on XFS, so the size
of the buffer in the write() call determines the size of the
allocation that is done. Hence tests that expect a specific extent
layout need to do IO in buffers as large as the extent size they
expect to be created.

The other side of this is that some tests also expect partial writes
to occur, which happened as a side effect of buffered writes being
broken down into PAGE_SIZE chunks. With DAX, that does not happen -
the writes tend to either succeed or fail completely, especially if
it is an ENOSPC condition that is ocurring.

HEnce these patches address these test assumptions, and now they
work correctly and pass on both DAX and non-DAX filesystems.

Cheers,

Dave.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-19 12:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-14  1:53 [PATCH 0/3] generic: fixes for different allocation behaviours Dave Chinner
2015-05-14  1:53 ` [PATCH 1/3] generic/018: use xfs_io and larger buffers for writes Dave Chinner
2015-05-14  1:53 ` [PATCH 2/3] generic/223, xfs/203: IO is not well aligned Dave Chinner
2015-05-14  1:53 ` [PATCH 3/3] generic/275: writes may not partially succeed Dave Chinner
2015-05-19 12:23 ` [PATCH 0/3] generic: fixes for different allocation behaviours Brian Foster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox