Revision e1e9b0ac
b/block.c | ||
---|---|---|
649 | 649 |
bs->opaque = g_malloc0(drv->instance_size); |
650 | 650 |
|
651 | 651 |
bs->enable_write_cache = !!(flags & BDRV_O_CACHE_WB); |
652 |
open_flags = flags | BDRV_O_CACHE_WB; |
|
652 | 653 |
|
653 | 654 |
/* |
654 | 655 |
* Clear flags that are internal to the block layer before opening the |
655 | 656 |
* image. |
656 | 657 |
*/ |
657 |
open_flags = flags & ~(BDRV_O_SNAPSHOT | BDRV_O_NO_BACKING);
|
|
658 |
open_flags &= ~(BDRV_O_SNAPSHOT | BDRV_O_NO_BACKING);
|
|
658 | 659 |
|
659 | 660 |
/* |
660 | 661 |
* Snapshots should be writable. |
Also available in: Unified diff