Revision 83f64091 block-cloop.c
b/block-cloop.c | ||
---|---|---|
50 | 50 |
return 0; |
51 | 51 |
} |
52 | 52 |
|
53 |
static int cloop_open(BlockDriverState *bs, const char *filename) |
|
53 |
static int cloop_open(BlockDriverState *bs, const char *filename, int flags)
|
|
54 | 54 |
{ |
55 | 55 |
BDRVCloopState *s = bs->opaque; |
56 | 56 |
uint32_t offsets_size,max_compressed_block_size=1,i; |
57 | 57 |
|
58 |
s->fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE);
|
|
58 |
s->fd = open(filename, O_RDONLY | O_BINARY); |
|
59 | 59 |
if (s->fd < 0) |
60 |
return -1;
|
|
60 |
return -errno;
|
|
61 | 61 |
bs->read_only = 1; |
62 | 62 |
|
63 | 63 |
/* read header */ |
Also available in: Unified diff