Message ID | 1443790258-23305-6-git-send-email-kwolf@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block/raw-posix.c b/block/raw-posix.c index 30df8ad..86f8562 100644 --- a/block/raw-posix.c +++ b/block/raw-posix.c @@ -1648,7 +1648,7 @@ static int raw_create(const char *filename, QemuOpts *opts, Error **errp) goto out; } - fd = qemu_open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, + fd = qemu_open(filename, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0644); if (fd < 0) { result = -errno;