block: add bdrv_reopen() support for raw hdev, floppy, and cdrom
commit1bc6b705eed02dab9feb0e663219b5623f3d684d
authorJeff Cody <jcody@redhat.com>
Tue, 20 Nov 2012 15:21:10 +0000 (20 10:21 -0500)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 21 Nov 2012 08:40:29 +0000 (21 09:40 +0100)
tree0127c99e2a5f18c3f053adf761e4659f516806d9
parentecf51c9abe63eae282e5f912d9367ce75f36636a
block: add bdrv_reopen() support for raw hdev, floppy, and cdrom

For hdev, floppy, and cdrom, the reopen() handlers are the same as
for the file reopen handler.  For floppy and cdrom types, however,
we keep O_NONBLOCK, as in the _open function.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/raw-posix.c