Changes between Version 57 and Version 58 of file_system
- Timestamp:
- Feb 6, 2016, 4:31:45 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
file_system
v57 v58 335 335 The block device is not modified by this function. 336 336 337 === __unsigned int '''_cluster_allocate'''( fat_inode_t* inode , unsigned int* cluster )__ === 338 This 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 337 343 === __unsigned int '''_clusters_release'''( fat_node_t* inode )__ === 338 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 340 It returns 0 on success. It returns 1 on error.341 342 === __unsigned int '''_cluster_allocate'''( fat_inode_t* inode , unsigned int* cluster )__ ===343 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 <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.344 The FAT region and the FS-INFO sector on block device are updated.345 345 346 346 It returns 0 on success. It returns 1 on error.