Changes between Version 41 and Version 42 of file_system


Ignore:
Timestamp:
Feb 2, 2016, 5:34:57 PM (8 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • file_system

    v41 v42  
    386386The block device is not modified by this function.
    387387
    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 is updated.
     388=== __unsigned int '''_clusters_release'''( fat_node_t* inode )__ ===
     389The 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.
     390The FAT region and the FS-INFO sector on block device are updated.
    391391It returns 0 on success. It returns 1 on error.
    392392
     
    394394This function allocates one cluster in FAT to a file (or directory) identified by the <inode> pointer. The allocated cluster index is returned in the
    395395<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 is updated.
     396The FAT region and the FS-INFO sector on block device are updated.
    397397It returns 0 on success. It returns 1 on error.
    398398