ipod vfat

From: Yaroslav Halchenko
Date: Sun Oct 31 2004 - 16:45:48 EST


Dear Kernel Developers,

Is it possible to incorporate the next patch which I had to introduce to
have the vfat fs of my ipod to get mounted under Linux.

Originally its vfat was mounting ok, but then at some point which I
didn't clearly mentioned, it stopped... probably it happened after I
attached ipod to some windows box, because now windows still can easily
mount it whenever vanilla linux kernel refuses...

Or should I just adjust my ipod's fs definition?

Thank you in advance

--
Yaroslav Halchenko
Graduate Student CS Dept. UNM, ABQ
Linux User 175555
lynx -source http://www.onerussian.com/gpg-yoh.asc | gpg --import
GPG fingerprint 3BB6 E124 0643 A615 6F00 6854 8D11 4563 75C0 24C8
--- linux-2.6.5/fs/fat/inode.c 2004-05-10 18:09:15.000000000 +0000
+++ linux-2.6.6-preX/fs/fat/inode.c 2004-05-09 19:49:04.000000000 +0000
@@ -984,6 +984,8 @@
}
if (FAT_FIRST_ENT(sb, media) == first) {
/* all is as it should be */
+ } else if (media == 0xf8 && FAT_FIRST_ENT(sb, 0xff) == first) {
+ /* bad, reported on yarik's ipod */
} else if (media == 0xf8 && FAT_FIRST_ENT(sb, 0xfe) == first) {
/* bad, reported on pc9800 */
} else if (media == 0xf0 && FAT_FIRST_ENT(sb, 0xf8) == first) {