Revision 7322afe7
b/block/qcow2-refcount.c | ||
---|---|---|
284 | 284 |
printf("update_refcount: offset=%" PRId64 " size=%" PRId64 " addend=%d\n", |
285 | 285 |
offset, length, addend); |
286 | 286 |
#endif |
287 |
if (length <= 0)
|
|
287 |
if (length < 0) {
|
|
288 | 288 |
return -EINVAL; |
289 |
} else if (length == 0) { |
|
290 |
return 0; |
|
291 |
} |
|
292 |
|
|
289 | 293 |
start = offset & ~(s->cluster_size - 1); |
290 | 294 |
last = (offset + length - 1) & ~(s->cluster_size - 1); |
291 | 295 |
for(cluster_offset = start; cluster_offset <= last; |
Also available in: Unified diff