Revision 5efa9d5a block-cow.c
b/block-cow.c | ||
---|---|---|
24 | 24 |
#ifndef _WIN32 |
25 | 25 |
#include "qemu-common.h" |
26 | 26 |
#include "block_int.h" |
27 |
#include "module.h" |
|
27 | 28 |
#include <sys/mman.h> |
28 | 29 |
|
29 | 30 |
/**************************************************************/ |
... | ... | |
252 | 253 |
fsync(s->fd); |
253 | 254 |
} |
254 | 255 |
|
255 |
BlockDriver bdrv_cow = { |
|
256 |
static BlockDriver bdrv_cow = {
|
|
256 | 257 |
.format_name = "cow", |
257 | 258 |
.instance_size = sizeof(BDRVCowState), |
258 | 259 |
.bdrv_probe = cow_probe, |
... | ... | |
264 | 265 |
.bdrv_flush = cow_flush, |
265 | 266 |
.bdrv_is_allocated = cow_is_allocated, |
266 | 267 |
}; |
268 |
|
|
269 |
static void bdrv_cow_init(void) |
|
270 |
{ |
|
271 |
bdrv_register(&bdrv_cow); |
|
272 |
} |
|
273 |
|
|
274 |
block_init(bdrv_cow_init); |
|
267 | 275 |
#endif |
Also available in: Unified diff