Revision f5edb014 block/raw-posix.c
b/block/raw-posix.c | ||
---|---|---|
138 | 138 |
|
139 | 139 |
s->open_flags = open_flags | O_BINARY; |
140 | 140 |
s->open_flags &= ~O_ACCMODE; |
141 |
if ((bdrv_flags & BDRV_O_ACCESS) == BDRV_O_RDWR) {
|
|
141 |
if (bdrv_flags & BDRV_O_RDWR) {
|
|
142 | 142 |
s->open_flags |= O_RDWR; |
143 | 143 |
} else { |
144 | 144 |
s->open_flags |= O_RDONLY; |
Also available in: Unified diff