gnome-vfs does not report copy errors with sd card
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-vfs (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I can consistently recreate a situation where the mmc_block module reports write errors via the kernel log, but gnome-vfs does NOT report these errors - instead, it says eventually that the copy succeeded. However, a diff on the original and copied files shows that there were errors.
This can be a real problem because it can cause data loss - the user has no idea that data loss occurred unless they check the kernel log.
It's possible that the problem is actually in the mmc_block module - perhaps it is not reporting the errors instead of gnome-vfs not checking them.
Version information:
Ubuntu 8.04 amd64 kernel 2.6.24-19
libgnome-vfs2.0-cil 2.20.0-2ubuntu3
The card is in the internal Ricoh card reader:
lspci |grep Ricoh
03:09.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
03:09.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/
03:09.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
03:09.3 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12)
Steps to reproduce:
1. Format the card using gparted.
2. Copy almost 2GB of files to the card (no errors reported anywhere).
3. Delete the 2GB of files (ie completely).
4. Repeat step 2. This time errors are reported (see attached kernel.log) but gnome-vfs reports no failure.
5. Unmount the card, remount, check with diff. Diff reports differences in one or more of the files that was copied.
Still present using every kernel to 2.6.27-4 and libgnome-vfs2.0-cil 2.20.0-2ubuntu3.
This results in data loss if you are moving a file, because nautilus will delete the original after the kernel corrupts the copy.