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. |
| 369 | The following function add new <child> entry in the Cache-File of the <parent> directory. It accesses the File_Cache associated to the parent directory, |
| 370 | and scan the clusters allocated to this directory to find the NO_MORE entry, that will be the first modified entry in the directory. |
| 371 | 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. |
| 372 | It 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. |
| 373 | It updates the dentry field in the child inode. It set the dirty bit for all modified File-Cache buffers. |