Changes between Version 56 and Version 57 of file_system


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

--

Legend:

Unmodified
Added
Removed
Modified
  • file_system

    v56 v57  
    368368It traverses the 64-tree Cache-file from top to bottom to find the last level.
    369369
    370 === __unsigned int '''_allocate_one_cluster'''( unsigned int*  cluster )__ ==
    371 This  function allocates one free cluster from the FAT and returns the cluster index in the <cluster> argument.
    372 It updates the FAT slot, and the two FAT descriptor variables "first_free_cluster" and "free_clusters_number".
     370=== __unsigned int '''_get_free_cluster'''( unsigned int*  cluster )__ ==
     371This  function scan the Fat-Cache from the "_free_cluster_hint" global variable to find the first free cluster index, and return this cluster index in the <cluster> argument.
     372It does not update any data structure: nor the Fat-Cache, neither the  FAT descriptor.
    373373
    374374It returns 0 on success. It returns 1 on error.