Messages in this thread Patch in this message | | | Date | Sun, 13 Jun 2004 17:40:34 -0700 | From | William Lee Irwin III <> | Subject | [7/12] Handle NO_SENSE in sd_rw_intr in sd.c |
| |
* Handle NO_SENSE in sd_rw_intr in drivers/scsi/sd.c (Alan Stern) This fixes Debian BTS #232494. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=232494
Message-ID: <402C7AEF.6030206@post.cz> From: =?windows-1252?Q?Tonda_M=ED=9Aek?= <tonda.misek@post.cz> To: submit@bugs.debian.org Subject: mount not work for usb-storage with vfat
I have unstable Debian distribution. The usb-storage device is USB flash disk.
mount -t vfat /dev/sda1 /ahd/
mount: /dev/sda1: can't read superblock SCSI error: <1 0 0 0> return code 0x8000000 Current sda: sense key No sense end_request: I/O error, dev sda, sector 32 FAT: unable to read boot sector
Moreover vfat driver not recognize mount option "isocharset=iso8859-2" at all.
With kernel 2.4.24 all works without problems
Index: linux-2.5/drivers/scsi/sd.c =================================================================== --- linux-2.5.orig/drivers/scsi/sd.c 2004-06-13 11:57:24.000000000 -0700 +++ linux-2.5/drivers/scsi/sd.c 2004-06-13 12:08:56.000000000 -0700 @@ -770,6 +770,14 @@ * hard error. */ print_sense("sd", SCpnt); + /* FALLS THROUGH */ + + case NO_SENSE: + /* + * The low-level driver got the sense data but + * everything was all right. Don't treat this + * as an error. + */ SCpnt->result = 0; SCpnt->sense_buffer[0] = 0x0; good_bytes = this_count; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |