]> www.infradead.org Git - users/dwmw2/qemu.git/commit
nbd: fixes to read-only handling
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Nov 2012 09:34:17 +0000 (10:34 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 30 Nov 2012 22:02:14 +0000 (16:02 -0600)
commit879c2648038863c30587411f90b142de05e12a3b
tree24bd02671e567acf49eab53be501e4df3d39dc3a
parent382a582c1f4c1877968d73751dd2f1206547eda4
nbd: fixes to read-only handling

We do not need BLKROSET if the kernel supports setting flags.
Also, always do BLKROSET even for a read-write export, otherwise
the read-only state remains "sticky" after the invocation of
"qemu-nbd -r".

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit c8969eded252058e90e91f12f75f32aceae46ec9)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
nbd.c