Skip to contentSkip to conversation

ipod vfat

PATCH Yaroslav Halchenko 2 participants 2 messages Oct 31, 2004 VFAT/FAT/msdos filesystem

lore
Share & tools
lore
#0 lore raw

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

Signature · 5 lines
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
fs/fat/inode.c +2 -0
@@ -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) {
#1 lore raw

I'm sorry guys - it seems that the necessary steps were taken in the last kernel version:

/*
* The low byte of FAT's first entry must have same value with
* media-field. But in real world, too many devices is
* writing wrong value. So, removed that validity check. *
* if (FAT_FIRST_ENT(sb, media) != first)
*/

So I will give it a spin :-)

Sorry once again

Signature · 1 line
Yarik
Quoted 13 lines · Yaroslav Halchenko

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

Signature · 6 lines
                                                  Yaroslav Halchenko
                  Research Assistant, Psychology Department, Rutgers
          Office  (973) 353-5440 x263  Fax (973) 353-1171
   Ph.D. Student  CS Dept. NJIT
             Key  http://www.onerussian.com/gpg-yoh.asc
 GPG fingerprint  3BB6 E124 0643 A615 6F00  6854 8D11 4563 75C0 24C8