login
Header Space

 
 

./fs/partitions/check.c: off-by-one error ?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>
Date: Sunday, April 20, 2008 - 6:35 am

Inserting an 2 GB SD Card into my digikam and mounting it as an USB drive I=
've
in my system log :

Apr 20 12:27:54 n22 usb 2-2: new full speed USB device using uhci_hcd and a=
ddress 4
Apr 20 12:27:54 n22 usb 2-2: configuration #1 chosen from 1 choice
Apr 20 12:27:54 n22 SCSI subsystem initialized
Apr 20 12:27:54 n22 Initializing USB Mass Storage driver...
Apr 20 12:27:54 n22 scsi0 : SCSI emulation for USB Mass Storage devices
Apr 20 12:27:54 n22 usbcore: registered new interface driver usb-storage
Apr 20 12:27:54 n22 USB Mass Storage support registered.
Apr 20 12:27:54 n22 usb-storage: device found at 4
Apr 20 12:27:54 n22 usb-storage: waiting for device to settle before scanni=
ng
Apr 20 12:27:59 n22 scsi 0:0:0:0: Direct-Access     MATSHITA DMC-TZ3       =
   0100 PQ: 0 ANSI: 2
Apr 20 12:27:59 n22 usb-storage: device scan complete
Apr 20 12:27:59 n22 Driver 'sd' needs updating - please use bus_type methods
Apr 20 12:27:59 n22 sd 0:0:0:0: [sda] 3902463 512-byte hardware sectors (19=
98 MB)
Apr 20 12:27:59 n22 sd 0:0:0:0: [sda] Write Protect is off
Apr 20 12:27:59 n22 sd 0:0:0:0: [sda] Mode Sense: 04 00 00 00
Apr 20 12:27:59 n22 sd 0:0:0:0: [sda] Assuming drive cache: write through
Apr 20 12:27:59 n22 sd 0:0:0:0: [sda] 3902463 512-byte hardware sectors (19=
98 MB)
Apr 20 12:27:59 n22 sd 0:0:0:0: [sda] Write Protect is off
Apr 20 12:27:59 n22 sd 0:0:0:0: [sda] Mode Sense: 04 00 00 00
Apr 20 12:27:59 n22 sd 0:0:0:0: [sda] Assuming drive cache: write through
Apr 20 12:27:59 n22 sda: sda1
Apr 20 12:27:59 n22 sda: p1 exceeds device capacity
Apr 20 12:27:59 n22 sd 0:0:0:0: [sda] Attached SCSI removable disk
Apr 20 12:27:59 n22 attempt to access beyond end of device
Apr 20 12:27:59 n22 sda: rw=3D0, want=3D3902464, limit=3D3902463
Apr 20 12:27:59 n22 Buffer I/O error on device sda1, logical block 3902334
Apr 20 12:27:59 n22 attempt to access beyond end of device
Apr 20 12:27:59 n22 sda: rw=3D0, want=3D3902464, limit=3D3902463
Apr 20 12:27:59 n22 Buffer I/O error on device sda1, logical block 3902334
Apr 20 12:27:59 n22 attempt to access beyond end of device
Apr 20 12:27:59 n22 sda: rw=3D0, want=3D3902464, limit=3D3902463
Apr 20 12:27:59 n22 Buffer I/O error on device sda1, logical block 3902334
Apr 20 12:27:59 n22 attempt to access beyond end of device
Apr 20 12:27:59 n22 sda: rw=3D0, want=3D3902464, limit=3D3902463
Apr 20 12:27:59 n22 Buffer I/O error on device sda1, logical block 3902334
Apr 20 12:27:59 n22 attempt to access beyond end of device
Apr 20 12:27:59 n22 sda: rw=3D0, want=3D3902464, limit=3D3902463
Apr 20 12:27:59 n22 Buffer I/O error on device sda1, logical block 3902334
Apr 20 12:27:59 n22 attempt to access beyond end of device
Apr 20 12:27:59 n22 sda: rw=3D0, want=3D3902464, limit=3D3902463
Apr 20 12:27:59 n22 Buffer I/O error on device sda1, logical block 3902334
Apr 20 12:27:59 n22 attempt to access beyond end of device
Apr 20 12:27:59 n22 sda: rw=3D0, want=3D3902464, limit=3D3902463
Apr 20 12:27:59 n22 Buffer I/O error on device sda1, logical block 3902334
Apr 20 12:27:59 n22 attempt to access beyond end of device
Apr 20 12:27:59 n22 sda: rw=3D0, want=3D3902464, limit=3D3902463
Apr 20 12:27:59 n22 Buffer I/O error on device sda1, logical block 3902334
Apr 20 12:27:59 n22 attempt to access beyond end of device
Apr 20 12:27:59 n22 sda: rw=3D0, want=3D3902464, limit=3D3902463
Apr 20 12:27:59 n22 Buffer I/O error on device sda1, logical block 3902334

My system is a :

tfoerste@n22 ~/devel/linux-2.6/fs/partitions $ uname -a
Linux n22 2.6.24-gentoo-r4 #4 Sun Apr 20 12:16:18 CEST 2008 i686 Intel(R)
Pentium(R) M processor 1700MHz GenuineIntel GNU/Linux

I already re-formatted the card under Linux as well as under Windows XP and=
 got
always the same behaviour.

=2D-=20
MfG/Sincerely

Toralf F=F6rster
pgp finger print: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 7DB6 9DA3
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
./fs/partitions/check.c: off-by-one error ?, Toralf , (Sun Apr 20, 6:35 am)
Re: ./fs/partitions/check.c: off-by-one error ?, Jan Kara, (Tue Apr 22, 6:38 am)
Re: ./fs/partitions/check.c: off-by-one error ?, Toralf , (Wed Apr 23, 12:42 pm)
Re: ./fs/partitions/check.c: off-by-one error ?, Jan Kara, (Mon Apr 28, 8:56 am)
Re: ./fs/partitions/check.c: off-by-one error ?, Randy Dunlap, (Tue Apr 22, 11:32 am)
Re: ./fs/partitions/check.c: off-by-one error ?, Alan Stern, (Tue Apr 22, 11:48 am)
speck-geostationary