[dm-devel] [PATCH 1/15] block copy: initial XCOPY offload support

Mikulas Patocka mpatocka at redhat.com
Fri Jul 18 14:35:04 UTC 2014



On Fri, 18 Jul 2014, Tomas Henzl wrote:

> > +	if (src_sector + nr_sects < src_sector ||
> > +	    dst_sector + nr_sects < dst_sector)
> > +		return -EINVAL;
> 
> Hi Mikulas,
> this^ is meant as an overflow test or what is the reason?
> Thanks, Tomas

Yes. It is a test for overflow.

Mikulas




More information about the dm-devel mailing list