public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* FAT32 superiority over ext2 :-)
@ 2001-06-24 22:54 Albert D. Cahalan
  2001-06-24 23:22 ` Daniel Phillips
  0 siblings, 1 reply; 5+ messages in thread
From: Albert D. Cahalan @ 2001-06-24 22:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: viro, phillips, chaffee, storner, mnalis-umsdos


By dumb luck (?), FAT32 is compatible with the phase-tree algorithm
as seen in Tux2. This means it offers full data integrity.
Yep, it whips your typical journalling filesystem. Look at what
we have in the superblock (boot sector):

    __u32  fat32_length;  /* sectors/FAT */
    __u16  flags;         /* bit 8: fat mirroring, low 4: active fat */
    __u8   version[2];    /* major, minor filesystem version */
    __u32  root_cluster;  /* first cluster in root directory */
    __u16  info_sector;   /* filesystem info sector */

All in one atomic write, one can...

1. change the active FAT
2. change the root directory
3. change the free space count

That's enough to atomically move from one phase to the next.
You create new directories in the free space, and make FAT
changes to an inactive FAT copy. Then you write the superblock
to atomically transition to the next phase.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-06-25 15:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-24 22:54 FAT32 superiority over ext2 :-) Albert D. Cahalan
2001-06-24 23:22 ` Daniel Phillips
2001-06-24 23:49   ` Albert D. Cahalan
2001-06-25  0:03     ` Daniel Phillips
2001-06-25 15:04       ` Juri Haberland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox