Changes between Version 57 and Version 58 of file_system


Ignore:
Timestamp:
Feb 6, 2016, 4:31:45 PM (8 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • file_system

    v57 v58  
    335335The block device is not modified by this function.
    336336
     337=== __unsigned int '''_cluster_allocate'''( fat_inode_t*   inode , unsigned int*  cluster )__ ===
     338This 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.
     339The FAT region and the FS-INFO sector on block device are updated.
     340
     341It returns 0 on success. It returns 1 on error.
     342
    337343=== __unsigned int '''_clusters_release'''( fat_node_t* inode )__ ===
    338344This 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.
    345345
    346346It returns 0 on success. It returns 1 on error.