Re: [PATCH] xfs_io: Prevent devide by zero from {pread, pwrite}_random

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 25, 2016 at 07:20:53PM +0400, Dmitry Monakhov wrote:
> 
> Math is wrong if range requested is less or equals to block size
> 
> xfs_io -c 'pwrite -b 4k 8k 4k -R' \
>        -c 'pread -b 4k  4k 4k -R' -f file
> 
> Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx>

Looks fine,

Reviewed-by: Christoph Hellwig <hch@xxxxxx>

Are we going to see a new testcase that relies on this soon? :)

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs



[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux