lab9 Filesystem
  • Introduction
  • Important Commands
    • File Permissions
    • Disk Duplication
    • Create FAT Filesystems
    • Check and Repair FAT filesystem
    • Mount
    • Demo
    • Viewing with Hex Editor
      • Endian-ness in FAT32
  • Linux File System Calls
  • Directory Related Calls in C Language
  • Overview of FAT32
  • Accessing FAT using C
    • C Header of FAT
      • Header: Boot Sector
      • Header: Dir Entry
      • Read the header
    • 8+3 File Name
    • Traversing Cluster
    • Finding Next Cluster
    • Reference
Powered by GitBook
On this page

Was this helpful?

  1. Accessing FAT using C

8+3 File Name

PreviousRead the headerNextTraversing Cluster

Last updated 5 years ago

Was this helpful?

It is a standard of a filename used by FAT system.

Filenames are limited to at most 8 characters, followed by file extension of a period '.' and at most 3 characters.

In the Dir Entry header, it is defined as:

#define MSDOS_NAME      11      /* maximum name length */
__u8    name[MSDOS_NAME];/* name and extension */

That's mean the size of the filename array is 11. Here are some examples of 8+3 filenames that stored inside the array.

File Deletion and File name

In FAT32, deleting a file does not mean to remove from the filesystem. It only deallocates the space that the file originally occupied and deletion is marked. In this case, the first character of the filename is marked with a special0xe5.