Changes between Version 41 and Version 42 of file_system
- Timestamp:
- Feb 2, 2016, 5:34:57 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
file_system
v41 v42 386 386 The block device is not modified by this function. 387 387 388 === __unsigned int '''_clusters_release'''( unsigned int cluster)__ ===389 The following function releases all clusters allocated to a file or directory , from the cluster index defined by the <cluster> 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.390 The FAT region on block device isupdated.388 === __unsigned int '''_clusters_release'''( fat_node_t* inode )__ === 389 The following 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. 390 The FAT region and the FS-INFO sector on block device are updated. 391 391 It returns 0 on success. It returns 1 on error. 392 392 … … 394 394 This function allocates one cluster in FAT to a file (or directory) identified by the <inode> pointer. The allocated cluster index is returned in the 395 395 <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. 396 The FAT region on block device isupdated.396 The FAT region and the FS-INFO sector on block device are updated. 397 397 It returns 0 on success. It returns 1 on error. 398 398