[PATCH] xfsteststs: get fsstress DIO working on non-xfs filesystems
Dave Chinner
david at fromorbit.com
Mon Jan 18 19:08:03 CST 2010
On Mon, Jan 18, 2010 at 02:46:35PM -0600, Eric Sandeen wrote:
> Pretty sure all DIO IO fails in fsstress today since XFS_IOC_DIOINFO
> fails. If so, rather than just bailing out on the op, assign
> some sane default DIO parameters.
>
> This falls down for 4k sector devices but not really sure how to get
> the underlying sector size easily from here; I think we can live
> with this for now.
ioctl(fd, BLKSSZGET, ...) perhaps? And then if that fails, just hard
code it?
> hch suggested moving XFS_IOC_DIOINFO up higher in the vfs, that's
> probably a good idea in the long run.
Yeah, that makes sense to do.
Cheers,
Dave.
--
Dave Chinner
david at fromorbit.com
More information about the xfs
mailing list