(Sorry for the delay in getting back to you; I've been travelling.)

Hmm, looking at what you sent me, it looks like DFSee was being
"clever".  It looks like it deliberately put something which looks
like almost exactly like a FAT12/FAT16 header, passing all of the
normal checks one might make for seeing if the various fields make
sense.

(gdb) p *((struct msdos_super_block *) buf)
$14 = {ms_ignored = "�\037", ms_sysid = "DFSee8.x", 
  ms_sector_size = "\000\002", ms_cluster_size = 8 '\b', ms_reserved = 1, 
  ms_fats = 2 '\002', ms_dir_entries = "\000\002", ms_sectors = "\000", 
  ms_media = 248 '�', ms_fat_length = 134, ms_secs_track = 63, ms_heads = 255, 
  ms_hidden = 63, ms_total_sect = 16868184, ms_unknown = "\200\001)", 
  ms_serno = "�e\223U", ms_label = "\000\000\000\000\000\000\000\000\000\000", 
  ms_magic = "JFS     ", 
  ms_dummy2 = " [EMAIL PROTECTED] 
9O\000d\000\b\000\b\000px\002\000S\000\000\000�w\002\034\000\000\000\000�w\002\034\200x\002\000�����}\002\034\000\000\000\000^\003\000\000�\205\000\000�x\002\000����\b\000\000\000\002\000\000\000\000\000\000'|x\002\000(y\002\000�\036�\037\b\000\000\000\b\000\000\000d\000\000\000
 [EMAIL PROTECTED] y\002\000([EMAIL PROTECTED] 
\000\000\000�y$\000\033\000\004\000\000\000\000\000\0009\006\000�y\002\000�y\210x\002\034�y\027",
 ms_pmagic = "\000\026"}

The reason why I don't just check ms_magic is that there have been
some (badly behaved) FAT filesystem formatters which don't set
ms_magic, or set it to some garbage value other than "FAT12 " or
"FAT16 ".

What I suspect I will end up doing is checking to see if ms_sysid
begins with "DFSee" (since I assume "8.x" is the version number), and
if it is set, I will insist on ms_magic being "FAT12 " or "FAT16 ".

Can you do me a favor?  Can you create for me a series of filesystems
that are FAT12, FAT16, FAT32, and perhaps a couple of other
filesystems that DFSee supports, using your version of DFSee, and send
me the first 32k of said filesystems?  I want to see how what sort
"magic" it is putting into those filesystems, so I can arm blkid
appropriately to detect them.

I've also cc'ed the author of DFSee in hopes that he might be able to
shed a bit more light on what's going on here.

                                                - Ted

-- 
blkid library detects JFS partition as FAT32
https://bugs.launchpad.net/bugs/255255
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to