Hani Benhabiles 60fe4fac22 nbd: Don't export a block device with no medium.
The device is exported with erroneous values and can't be read.

Before the patch:
$ sudo nbd-client localhost -p 10809 /dev/nbd0 -name floppy0
Negotiation: ..size = 17592186044415MB
bs=1024, sz=18446744073709547520 bytes

$ sudo mount /dev/nbd0 /mnt/tmp/
mount: block device /dev/nbd0 is write-protected, mounting read-only
mount: /dev/nbd0: can't read superblock

After the patch:
(qemu) nbd_server_add ide0-hd0
(qemu) nbd_server_add floppy0
Device 'floppy0' has no medium

Signed-off-by: Hani Benhabiles <kroosec@gmail.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-06-27 16:06:48 +02:00
2014-06-24 20:01:24 +04:00
2014-06-23 11:12:28 -04:00
2014-06-23 11:00:12 -04:00
2014-06-24 15:33:42 +01:00
2014-06-20 23:59:19 +01:00
2014-06-24 15:33:42 +01:00
2014-06-05 16:10:33 +02:00
2014-06-05 16:10:33 +02:00
2014-06-24 20:01:24 +04:00
2014-06-23 11:12:28 -04:00
2014-06-16 13:24:35 +02:00
2014-06-09 15:43:40 +02:00
2014-06-23 11:12:28 -04:00
2014-06-24 20:01:24 +04:00
2014-06-23 11:01:25 -04:00
2014-06-05 16:10:33 +02:00
2014-06-19 18:44:21 +03:00
2014-06-19 16:41:54 +03:00
2014-06-23 11:01:25 -04:00
2014-06-23 19:09:50 +02:00
2014-05-24 00:07:29 +04:00
2014-05-28 17:36:21 +02:00
2014-06-16 17:23:21 +08:00
2014-06-09 15:43:40 +02:00
2014-05-28 14:28:46 +02:00
2014-05-24 00:07:29 +04:00
2014-06-19 18:44:22 +03:00
2014-06-05 16:10:33 +02:00
2014-06-24 15:33:42 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%