Re: [Qemu-devel] [PATCH 08/10] qcow2: Allow updating no refcounts

2010-01-20 Thread Kevin Wolf
Am 19.01.2010 19:53, schrieb Christoph Hellwig: >> #endif >> -if (length <= 0) >> +if (length < 0) { >> return -EINVAL; >> +} >> + >> start = offset & ~(s->cluster_size - 1); >> last = (offset + length - 1) & ~(s->cluster_size - 1); >> for(cluster_offset = start

Re: [Qemu-devel] [PATCH 08/10] qcow2: Allow updating no refcounts

2010-01-19 Thread Christoph Hellwig
> #endif > -if (length <= 0) > +if (length < 0) { > return -EINVAL; > +} > + > start = offset & ~(s->cluster_size - 1); > last = (offset + length - 1) & ~(s->cluster_size - 1); > for(cluster_offset = start; cluster_offset <= last; So for legnth = 0, last will e