• Matt Domsch's avatar
    [PATCH] idefloppy: suppress media not present errors · 77bcf0fa
    Matt Domsch authored
    Below is a patch to suppress printing uninformative errors from
    ide-floppy.c in response to commands to floppy drives in which no media is
    present.
    
    Without this patch, commands sent to ide-floppy devices without media
    inserted cause error messages on the console (KERN_ERR level) such as:
    
    ide-floppy: ide: I/O error, pc = 0 key = 2, asc = 3a asq = 0
    ide-floppy: ide: I/O error, pc = 1b key = 2, asc = 3a asq = 0
    ide-floppy: ide: I/O error, pc = 23 key = 2, asc = 3a asq = 0
    ide-floppy: ide: I/O error, pc = 1e key = 2, asc = 3a asq = 0
    ide-floppy: ide: I/O error, pc = 1e key = 2, asc = 3a asq = 0
    
    Dell's Virtual Floppy (system management presents to the local system an
    IDE floppy device, which is actually a floppy device in a remote system
    connected over an IP link) exhibits this also, when connecting to a remote
    floppy drive with no media present.
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    77bcf0fa
ide-floppy.c 64 KB