version 1.1.1.1, 2018/04/24 16:37:52
|
version 1.1.1.2, 2018/04/24 16:42:27
|
Line 250 static int cow_create(const char *filena
|
Line 250 static int cow_create(const char *filena
|
return 0; |
return 0; |
} |
} |
|
|
|
static void cow_flush(BlockDriverState *bs) |
|
{ |
|
BDRVCowState *s = bs->opaque; |
|
fsync(s->fd); |
|
} |
|
|
BlockDriver bdrv_cow = { |
BlockDriver bdrv_cow = { |
"cow", |
"cow", |
sizeof(BDRVCowState), |
sizeof(BDRVCowState), |
Line 259 BlockDriver bdrv_cow = {
|
Line 265 BlockDriver bdrv_cow = {
|
cow_write, |
cow_write, |
cow_close, |
cow_close, |
cow_create, |
cow_create, |
|
cow_flush, |
cow_is_allocated, |
cow_is_allocated, |
}; |
}; |
#endif |
#endif |