Revision e25ceb76
b/nbd.c | ||
---|---|---|
842 | 842 |
case NBD_CMD_READ: |
843 | 843 |
TRACE("Request type is READ"); |
844 | 844 |
|
845 |
if (request.type & NBD_CMD_FLAG_FUA) { |
|
846 |
ret = bdrv_co_flush(exp->bs); |
|
847 |
if (ret < 0) { |
|
848 |
LOG("flush failed"); |
|
849 |
reply.error = -ret; |
|
850 |
goto error_reply; |
|
851 |
} |
|
852 |
} |
|
853 |
|
|
845 | 854 |
ret = bdrv_read(exp->bs, (request.from + exp->dev_offset) / 512, |
846 | 855 |
req->data, request.len / 512); |
847 | 856 |
if (ret < 0) { |
Also available in: Unified diff