Changes between Version 40 and Version 41 of file_system


Ignore:
Timestamp:
Jan 31, 2016, 2:15:45 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • file_system

    v40 v41  
    367367
    368368=== __unsigned int '''_add_dir_entry'''( fat_inode_t* child , fat_inode_t* parent )__ ===
    369 
    370 The following function add new <child> in the Cache-File of the <parent> directory.
    371 It accesses the File_Cache associated to the parent directory, and scan the clusters allocated to this directory to find the NO_MORE entry.
    372 This entry will be the first modified entry in the parent directory. Regarding the name storage, it uses LFN entries for all names.
    373 Therefore, it writes 1, 2, or 3 LFN entries (depending on the child name actual length, it writes one NORMAL entry, and writes the new NOMORE entry.
    374 It updates the dentry field in the child inode.
    375 It set the dirty bit for all modified File-Cache buffers.
     369The following function add new <child> entry in the Cache-File of the <parent> directory. It accesses the File_Cache associated to the parent directory,
     370and scan the clusters allocated to this directory to find the NO_MORE entry, that will be the first modified entry in the directory.
     371Regarding the name storage, it uses LFN entries for all names, but computes a legal (upper case / 8.3) SFN name that will be stored in the NORMAL entry.
     372It writes 1, 2, or 3 LFN entries (depending on the child name actual length), writes one NORMAL entry, and writes the new NO_MORE entry.
     373It updates the dentry field in the child inode. It set the dirty bit for all modified File-Cache buffers.
    376374The block device is not modified by this function.
    377375