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 )__ === |
| 315 | This 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. |