Revision a6599793 block/raw-posix.c
b/block/raw-posix.c | ||
---|---|---|
154 | 154 |
* and O_DIRECT for no caching. */ |
155 | 155 |
if ((bdrv_flags & BDRV_O_NOCACHE)) |
156 | 156 |
s->open_flags |= O_DIRECT; |
157 |
else if (!(bdrv_flags & BDRV_O_CACHE_WB))
|
|
157 |
if (!(bdrv_flags & BDRV_O_CACHE_WB)) |
|
158 | 158 |
s->open_flags |= O_DSYNC; |
159 | 159 |
|
160 | 160 |
s->fd = -1; |
Also available in: Unified diff