lkml.org 
[lkml]   [2010]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 3/8] floppy: silence warning during disk test
    The first thing the floppy does is read block 0 to test geometry
    and to test for disk presence. If disk is not present this causes a
    console warning message about failed I/O. Set flag to silence.

    Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

    --- a/drivers/block/floppy.c 2010-06-08 14:54:39.187135875 -0700
    +++ b/drivers/block/floppy.c 2010-06-08 14:54:40.307241699 -0700
    @@ -3829,6 +3829,7 @@ static int __floppy_read_block_0(struct
    bio.bi_size = size;
    bio.bi_bdev = bdev;
    bio.bi_sector = 0;
    + bio.bi_flags = BIO_QUIET;
    init_completion(&complete);
    bio.bi_private = &complete;
    bio.bi_end_io = floppy_rb0_complete;



    \
     
     \ /
      Last update: 2010-06-09 20:59    [W:4.048 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site