Re: gtkpod and Filesystem



>>>> a bug in gtkpod or the kernel (FS Panic).
>>>Maybe an FS error on your iPod? Did you try to reformat or dosfsck it?
>> Even then, the filesystem code should handle corrupt filesystems more
>> gracefully.
>
>Mh, what's "more gracefully" in the light of fs corruption?

return -EIO;

through all instances back to userspace and keep returning EIO for all
future requests. But let the user still umount the device.

>The driver just
>blocked write access to avoid further damage caused by writing to an
>inconsistent file system which sound perfectly reasonable to me. Writing to
>a corrupted fs could cause anything to it, depending on the corruption, so
>better act safe than sorry...

The interesting part comes when the filesystem corrupts itself
(= the code corrupts the on-disk data), and/plus it does not
notice quickly enough.


Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: IPSM Corruption
    ... We have PXA255 platform with the WinCe4.2, TFAT filesystem and MSFLASH ... Our filesystem crashes (corruption etc.) in a few hours of this tests. ... > just the file you were writing could be incomplete. ... > I solved the problem by implementing the RAM based Registry Read and Write ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [Ext2-devel] [RFC 0/13] extents and 48bit ext3
    ... today's large storage systems and today's filesystem technology. ... metadata is still accessible in a "linear" manner if the tree is corrupted ... It also has the bad effect that corruption in the file indirect ... blocks to be freed when that indirect block is unlinked, ...
    (Linux-Kernel)
  • Re: xfs problems (possibly after upgrading from linux kernel 2.6.27.10 to .14)
    ... image of the filesystem when in that state, ... this implies some kind of memory corruption is occurring. ... I don't know if a certain access pattern could trigger this somehow. ...
    (Linux-Kernel)
  • Re: [RFD] Incremental fsck
    ... Even after a black-out shutdown, the corruption is pretty minimal, using ... not the directory syntax looks sane, whether the inode structure looks ... the filesystem is changing out from under you, ...
    (Linux-Kernel)
  • Re: HTFS changed to DOS after doing divvy on /dev/hd1a
    ... I reboot. ... mount-unmount cycle, the superblock is written. ... you make a filesystem the same ... Whether this will work depends on how bad the original corruption was, ...
    (comp.unix.sco.misc)