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. |
| 339 | The FAT region and the FS-INFO sector on block device are also updated. |
| 340 | |
| 341 | It returns 0 on success. It returns 1 on error. |
| 342 | |
| 343 | === __unsigned int '''_all_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 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. |