[parted-devel] table.c's fat_table_set_eof

Jim Meyering jim at meyering.net
Fri Feb 16 15:45:29 CET 2007


Looking at the switch in fat_table_set_eof,
I see this:

    int
    fat_table_set_eof (FatTable* ft, FatCluster cluster)
    {

            switch (ft->fat_type) {
                    case FAT_TYPE_FAT16:
                    return fat_table_set (ft, cluster, 0xfff8);

                    case FAT_TYPE_FAT32:
                    return fat_table_set (ft, cluster, 0x0fffffff);
            }
            return 0;
    }

but doc/FAT says this:

   * end of file (0xff0 for FAT12, 0xfff0 for FAT16, 0x0ffffff0 for FAT32).

Is this an inconsistency?
If so, any idea which is right?



More information about the parted-devel mailing list