Re: [PATCH 05/12] fs: add a F_IOINFO fcntl

2017-03-01 Thread Christoph Hellwig
On Tue, Feb 28, 2017 at 08:51:39AM -0800, Darrick J. Wong wrote: > Hm... is fio_alignment is specified in units of bytes? Yes. > If so, then > shouldn't this be a __u32 so that we can handle some weird future device > that wants, say, 1MB alignment for its atomic IO? That would be pretty

Re: [PATCH 05/12] fs: add a F_IOINFO fcntl

2017-02-28 Thread Darrick J. Wong
On Tue, Feb 28, 2017 at 06:57:30AM -0800, Christoph Hellwig wrote: > This fcntl can be used to query I/O parameters for the given file > descriptor. Initially it is used for the I/O alignment and atomic > write parameters. > > Signed-off-by: Christoph Hellwig > --- > fs/fcntl.c

[PATCH 05/12] fs: add a F_IOINFO fcntl

2017-02-28 Thread Christoph Hellwig
This fcntl can be used to query I/O parameters for the given file descriptor. Initially it is used for the I/O alignment and atomic write parameters. Signed-off-by: Christoph Hellwig --- fs/fcntl.c | 18 ++ include/linux/fs.h | 1 +