Changes between Version 58 and Version 59 of file_system


Ignore:
Timestamp:
Feb 6, 2016, 6:12:53 PM (8 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • file_system

    v58 v59  
    335335The block device is not modified by this function.
    336336
    337 === __unsigned int '''_cluster_allocate'''( fat_inode_t*   inode , unsigned int*  cluster )__ ===
     337=== __unsigned int '''_one_cluster_allocate'''( fat_inode_t*   inode , unsigned int*  cluster )__ ===
    338338This function allocates one cluster in FAT to a file (or directory) identified by the <inode> argument. The allocated cluster index is returned in the <cluster> argument. It allocates also the associated buffers and buffer descriptors in Cache-File. It calls _get_fat_entry() and _set_fat_entry() functions to update the clusters chaining in the Cache-Fat.
    339 The FAT region and the FS-INFO sector on block device are updated.
    340 
    341 It returns 0 on success. It returns 1 on error.
    342 
    343 === __unsigned int '''_clusters_release'''( fat_node_t* inode )__ ===
    344 This function releases all clusters allocated to a file or directory identified by the <inode> argument, until the end of the FAT linked list. It calls _get_fat_entry() and _set_fat_entry() functions to scan the FAT, and to update the clusters chaining. The FAT region and the FS-INFO sector on block device are updated.
     339The FAT region and the FS-INFO sector on block device are also updated.
     340
     341It returns 0 on success. It returns 1 on error.
     342
     343=== __unsigned int '''_all_clusters_release'''( fat_node_t* inode )__ ===
     344This function releases all clusters allocated to a file or directory identified by the <inode> argument, until the end of the FAT linked list. It calls the _cluster release() recursive function to release the clusters in reverse order (from last to first), using the _get_fat_entry() and _set_fat_entry() functions to access the FAT, and update the clusters chaining. The FAT region and the FS-INFO sector on block device are also updated.
    345345
    346346It returns 0 on success. It returns 1 on error.