mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
Clean-up a little bit the RW related bits of BDRV_O_FLAGS. BDRV_O_RDONLY gone (and so is BDRV_O_ACCESS). Default value for bdrv_flags (0/zero) is READ-ONLY. Need to explicitly request READ-WRITE.
Instead of using the field 'readonly' of the BlockDriverState struct for passing the request, pass the request in the flags parameter to the function. Signed-off-by: Naphtali Sprei <nsprei@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
b196b1532f
commit
f5edb014ed
11 changed files with 44 additions and 42 deletions
|
|
@ -213,7 +213,7 @@ int main(int argc, char **argv)
|
|||
int opt_ind = 0;
|
||||
int li;
|
||||
char *end;
|
||||
int flags = 0;
|
||||
int flags = BDRV_O_RDWR;
|
||||
int partition = -1;
|
||||
int ret;
|
||||
int shared = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue