Revision 83f64091 block-bochs.c
b/block-bochs.c | ||
---|---|---|
85 | 85 |
return 0; |
86 | 86 |
} |
87 | 87 |
|
88 |
static int bochs_open(BlockDriverState *bs, const char *filename) |
|
88 |
static int bochs_open(BlockDriverState *bs, const char *filename, int flags)
|
|
89 | 89 |
{ |
90 | 90 |
BDRVBochsState *s = bs->opaque; |
91 | 91 |
int fd, i; |
92 | 92 |
struct bochs_header bochs; |
93 | 93 |
|
94 |
fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE);
|
|
94 |
fd = open(filename, O_RDWR | O_BINARY); |
|
95 | 95 |
if (fd < 0) { |
96 |
fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
|
|
96 |
fd = open(filename, O_RDONLY | O_BINARY); |
|
97 | 97 |
if (fd < 0) |
98 | 98 |
return -1; |
99 | 99 |
} |
Also available in: Unified diff