Unit asfs

Uses
Classes, Interfaces, Objects and Records
Constants

Description

Drivers->Storage->ASFS - Asuro Filesystem Driver.

Overview

Functions and Procedures

procedure init;
procedure create_volume(disk : PStorage_Device; sectors : uint32; start : uint32; config : puint32);
procedure detect_volumes(disk : PStorage_Device);

Types

TFilesystemRecord = bitpacked record magicNumber : uint32; sectorSize : uint16; sectorsPerTable : uint8; totalSectors : uint32; volumeLabel : array[0..15] of uint8; endOfData : uint32; end;
PFilesystemRecord = ˆTFilesystemRecord;
TFileEntry = bitpacked record filename : array[0..15] of uint8; lastWriteDate : array[0..3] of uint8; lastReadDate : array[0..3] of uint8; attributes : uint8; extension : array[0..6] of uint8; location : uint32; numSectors : uint32; end;
PFileEntry = ˆTFileEntry;

Variables

filesystem: TFilesystemRecord;

Description

Functions and Procedures

procedure init;

nullsectors : array[0..1024] of TFileEntry; //cache some null entry pointers for effeciency sake

procedure create_volume(disk : PStorage_Device; sectors : uint32; start : uint32; config : puint32);
 
procedure detect_volumes(disk : PStorage_Device);
 

Types

TFilesystemRecord = bitpacked record magicNumber : uint32; sectorSize : uint16; sectorsPerTable : uint8; totalSectors : uint32; volumeLabel : array[0..15] of uint8; endOfData : uint32; end;
 
PFilesystemRecord = ˆTFilesystemRecord;
 
TFileEntry = bitpacked record filename : array[0..15] of uint8; lastWriteDate : array[0..3] of uint8; lastReadDate : array[0..3] of uint8; attributes : uint8; extension : array[0..6] of uint8; location : uint32; numSectors : uint32; end;

File or folder entry for file table

PFileEntry = ˆTFileEntry;

year (2000 + x), month, day, hour 0 null entry, 1 file, 2 folder, 3 this folder, 4 parent folder, 5 table continuation, 6 volume root location on disk size in sectors

Variables

filesystem: TFilesystemRecord;
 

Author


Generated by PasDoc 0.16.0.