Re: [PATCH] fuse: fix alignment in short read optimization for async_dio

2013-05-30 Thread Brian Foster
On 05/30/2013 08:41 AM, Maxim Patlasov wrote: > The bug was introduced with async_dio feature: trying to optimize short reads, > we cut number-of-bytes-to-read to i_size boundary. Hence the following > example: > > truncate --size=300 /mnt/file > dd if=/mnt/file of=/dev/null iflag=dir

[PATCH] fuse: fix alignment in short read optimization for async_dio

2013-05-30 Thread Maxim Patlasov
The bug was introduced with async_dio feature: trying to optimize short reads, we cut number-of-bytes-to-read to i_size boundary. Hence the following example: truncate --size=300 /mnt/file dd if=/mnt/file of=/dev/null iflag=direct led to FUSE_READ request of 300 bytes size. This t