gnome-vfs does not report copy errors with sd card

Bug #239647 reported by Rocko
2
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/MMC/MS/MSPro Host Adapter (rev 22)
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.

Revision history for this message
Rocko (rockorequin) wrote :
Revision history for this message
Rocko (rockorequin) wrote :

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.

Revision history for this message
Rocko (rockorequin) wrote :

Also present in kernel 2.6.27-5-generic amd64.

Revision history for this message
Rocko (rockorequin) wrote :

Still present in the Intrepid release 2.6.27-7-generic i386 kernel. The errors are less likely to occur now, but when they do, nautilus doesn't tell you that they happened, leading to data loss.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.