Changes between Version 62 and Version 63 of file_system


Ignore:
Timestamp:
Mar 2, 2016, 1:50:41 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • file_system

    v62 v63  
    341341
    342342=== __unsigned int '''_all_clusters_release'''( fat_node_t* inode )__ ===
    343 This function releases all clusters allocated to a file or directory identified by the <inode> argument, until the end of the FAT linked list. All released clusters are marked as FREE_CLUSTER in FAT. This function 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.
     343This function releases all clusters allocated to a file or directory identified by the <inode> argument, until the end of the FAT linked list. All released clusters are marked as FREE_CLUSTER in the Fat-Cache. This function 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-Cache. The FAT region and the FS-INFO sector on block device are updated. The "cluster" field in inode is set to END_OF_CHAIN_CLUSTER_MIN.
    344344
    345345It returns 0 on success. It returns 1 on error.