Re: [Qemu-devel] [PATCH] raw-posix: Detect IDE floppy via ioctl

2010-01-12 Thread Cole Robinson
On 01/12/2010 05:16 AM, Christoph Hellwig wrote: > On Mon, Jan 11, 2010 at 01:30:19PM -0500, Cole Robinson wrote: >> Current IDE floppy detection is hardcoded based on source file name. >> Make this smarter by attempting a floppy specific ioctl. > > IDE floppys show up as /dev/hd?, these are old l

Re: [Qemu-devel] [PATCH] raw-posix: Detect IDE floppy via ioctl

2010-01-12 Thread Christoph Hellwig
On Mon, Jan 11, 2010 at 01:30:19PM -0500, Cole Robinson wrote: > Current IDE floppy detection is hardcoded based on source file name. > Make this smarter by attempting a floppy specific ioctl. IDE floppys show up as /dev/hd?, these are old legacy floppies. Otherwise looks good except that I think

[Qemu-devel] [PATCH] raw-posix: Detect IDE floppy via ioctl

2010-01-11 Thread Cole Robinson
Current IDE floppy detection is hardcoded based on source file name. Make this smarter by attempting a floppy specific ioctl. Signed-off-by: Cole Robinson --- block/raw-posix.c | 19 ++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/block/raw-posix.c b/block/r