Changes between Version 11 and Version 12 of file_system
- Timestamp:
- Jun 7, 2015, 2:23:11 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
file_system
v11 v12 3 3 [[PageOutline]] 4 4 5 This section describes the GIET_VM File System, that respect the FAT32 standard. 5 The [source:soft/giet_vm/giet_fat32/fat32.c fat32.c] and [source:soft/giet_vm/giet_fat32/fat32.h fat32.h] 6 files define the GIET_VM File System, that respect the FAT32 standard. 6 7 7 8 == 1) General Principles == … … 15 16 This implementation supports only cluster size = 4 Kbytes (i.e. 8 contiguous blocks on block device). 16 17 17 The FAT region on the block device is an array of 32 bits words defining the linked list of clusters allocated to given file in the DATA region of the block device. The DATA region is actually an array of 4 Kbytes buffers (i.e. an array of clusters).18 The FAT region on the block device is an array of 32 bits words defining the linked list of clusters allocated to a given file in the DATA region of the block device. The DATA region is actually an array of 4 Kbytes buffers (i.e. an array of clusters). 18 19 Each slot in the FAT array contains a cluster index, that is the index of the next allocated cluster for a given file. 19 20 The cluster index in the FAT array is also the cluster index in the DATA region array. The cluster index value cannot be larger than 0x0FFFFFFF (i.e. 256 M). The max addressable storage capacity in the DATA region on the block device is therefore (256 M * 4 Kbytes) = 1 Tbytes. We use the variable ''cluster'' to name the cluster index.