Revision ef72f76e block/qed.c
b/block/qed.c | ||
---|---|---|
1363 | 1363 |
int nb_sectors) |
1364 | 1364 |
{ |
1365 | 1365 |
BlockDriverAIOCB *blockacb; |
1366 |
BDRVQEDState *s = bs->opaque; |
|
1366 | 1367 |
QEDWriteZeroesCB cb = { .done = false }; |
1367 | 1368 |
QEMUIOVector qiov; |
1368 | 1369 |
struct iovec iov; |
1369 | 1370 |
|
1371 |
/* Refuse if there are untouched backing file sectors */ |
|
1372 |
if (bs->backing_hd) { |
|
1373 |
if (qed_offset_into_cluster(s, sector_num * BDRV_SECTOR_SIZE) != 0) { |
|
1374 |
return -ENOTSUP; |
|
1375 |
} |
|
1376 |
if (qed_offset_into_cluster(s, nb_sectors * BDRV_SECTOR_SIZE) != 0) { |
|
1377 |
return -ENOTSUP; |
|
1378 |
} |
|
1379 |
} |
|
1380 |
|
|
1370 | 1381 |
/* Zero writes start without an I/O buffer. If a buffer becomes necessary |
1371 | 1382 |
* then it will be allocated during request processing. |
1372 | 1383 |
*/ |
Also available in: Unified diff