Changes between Version 59 and Version 60 of file_system


Ignore:
Timestamp:
Feb 9, 2016, 1:27:17 PM (8 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • file_system

    v59 v60  
    312312It returns 0 on success. It returns 1 if error.
    313313
    314 === __unsigned int '''_add_dir_entry'''( fat_inode_t* child , fat_inode_t* parent )__ ===
    315 This function add a new <child> entry in the Cache-File of the <parent> directory. It accesses the File_Cache associated to the parent directory, and scan the clusters allocated to this directory to find the NO_MORE entry, that will be the first modified entry in the directory.
    316 Regarding 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.
     314=== __unsigned int '''_add_dir_entry'''( fat_inode_t* child )__ ===
     315This function add a new <child> entry in the Cache-File of the parent directory, and update the "dentry" field in the child inode. This field contains the NORMAL directory entry in the parent directory. It accesses the File_Cache associated to the parent directory, and scan the clusters allocated to this directory to find the NO_MORE entry, that will be the first modified entry in the directory. Regarding 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.
    317316It 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.
    318317It updates the dentry field in the child inode. It set the dirty bit for all modified File-Cache buffers.