Skip to content
Snippets Groups Projects
Commit f3313d23 authored by Michal Privoznik's avatar Michal Privoznik Committed by Paolo Bonzini
Browse files

nbd-server-add: Fix the default for 'writable'


The documentation to this monitor command tells, that 'writable'
argument is optional and defaults to false. However, the code sets
true as the default. But since some applications may already been
using this, it's safer to fix the code and not documentation which
would break those applications.

Signed-off-by: default avatarMichal Privoznik <mprivozn@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 8ffaaba0
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ void qmp_nbd_server_add(const char *device, bool has_writable, bool writable,
}
if (!has_writable) {
writable = true;
writable = false;
}
if (bdrv_is_read_only(bs)) {
writable = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment