Revision 856ae5c3 block-raw-posix.c
b/block-raw-posix.c | ||
---|---|---|
876 | 876 |
} |
877 | 877 |
|
878 | 878 |
BlockDriver bdrv_raw = { |
879 |
"raw", |
|
880 |
sizeof(BDRVRawState), |
|
881 |
NULL, /* no probe for protocols */ |
|
882 |
raw_open, |
|
883 |
NULL,
|
|
884 |
NULL,
|
|
885 |
raw_close, |
|
886 |
raw_create, |
|
887 |
raw_flush, |
|
879 |
.format_name = "raw",
|
|
880 |
.instance_size = sizeof(BDRVRawState),
|
|
881 |
.bdrv_probe = NULL, /* no probe for protocols */
|
|
882 |
.bdrv_open = raw_open,
|
|
883 |
.bdrv_read = raw_read,
|
|
884 |
.bdrv_write = raw_write,
|
|
885 |
.bdrv_close = raw_close,
|
|
886 |
.bdrv_create = raw_create,
|
|
887 |
.bdrv_flush = raw_flush,
|
|
888 | 888 |
|
889 | 889 |
#ifdef CONFIG_AIO |
890 | 890 |
.bdrv_aio_read = raw_aio_read, |
... | ... | |
893 | 893 |
.aiocb_size = sizeof(RawAIOCB), |
894 | 894 |
#endif |
895 | 895 |
|
896 |
.bdrv_read = raw_read, |
|
897 |
.bdrv_write = raw_write, |
|
898 | 896 |
.bdrv_truncate = raw_truncate, |
899 | 897 |
.bdrv_getlength = raw_getlength, |
900 | 898 |
}; |
Also available in: Unified diff