Changes between Version 50 and Version 51 of file_system


Ignore:
Timestamp:
Feb 3, 2016, 8:00:15 PM (8 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • file_system

    v50 v51  
    6161== 3) Implementation Notes
    6262
    63 === __'''File / directory size'''__ ===
    64  For a file, the number of occupied clusters on block device can be directly obtained from the  <size>. The <size> attribute is a number of bytes stored on block device (in the directory entry), and copied in memory as a specific field in  the associated inode.
    65  For a directory, the size attribute must be set to 0. The number of occupied clusters on block device can be obtained from the <is_dir> field in the associated inode: This field is set to 0 for a file, and contain the number of occupied clusters, that cannot be zero, because a directory contains always the '.' and '..' entries.
    66 
    67 === __'''File / directory names'''__ ===
     63 '''File / directory size'''
     64For a file, the number of occupied clusters on block device can be directly obtained from the  <size>. The <size> attribute is a number of bytes stored on block device (in the directory entry), and copied in memory as a specific field in  the associated inode.
     65For a directory, the< size> attribute must be set to 0. The number of occupied clusters on block device can be obtained from the <is_dir> field in the associated inode: This field is set to 0 for a file, and contain the number of occupied clusters, that cannot be zero, because a directory contains always the '.' and '..' entries.
     66
     67 '''File / directory names'''
    6868This implementation supports the LFN (long file name) extension, up to 31 characters. Therefore, each file or directory contained in a parent directory occupies several 32 bytes directory entries:
    69  * short names (up to 13 characters) occupy 2 entries: one LFN and one NORMAL.
    70  * medium names (from 14 to 26 characters) occupy 3 entries: two LFN and one NORMAL.
    71  * large names (from 27 to 31 characters) occupy 4 entries: three LFN and one NORMAL.
     69 * names up to 13 characters occupy 2 entries : one LFN and one NORMAL.
     70 * names from 14 to 26 characters occupy 3 entries: two LFN and one NORMAL.
     71 * names from 27 to 31 characters occupy 4 entries: three LFN and one NORMAL.
    7272When new names are created, a legal 8-3 SFN (Short File Name) alias is generated from the complete new name, and is stored in the NORMAL directory entry, to produce a legal FAT32 image. But this alias SFN is never used by the FAT32 library for file identification.
    7373