Changes between Version 61 and Version 62 of file_system
- Timestamp:
- Mar 2, 2016, 1:00:01 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
file_system
v61 v62 341 341 342 342 === __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. Itcalls 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.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. 344 344 345 345 It returns 0 on success. It returns 1 on error.