Unit EXTFS

From Ultibo.org
Revision as of 03:46, 19 June 2017 by Ultibo (Talk | contribs)

Jump to: navigation, search

Return to Unit Reference


Description


Ultibo EXT2/3/4 File System interface unit

To be documented

Constants



extfs_*
extfsEXT2 = 0;  
extfsEXT3 = 1;  
rxtfsEXT4 = 2;  
 
extfsNames:array[0..2] of String = (  
'EXT2',  
'EXT3',  
'EXT4');  


Type definitions



EXTFS specific types

TEXTFSType = (etNONE,etEXT2,etEXT3,etEXT4);


Class definitions



EXTFS recognizer

TEXTFSRecognizer = class(TRecognizer)

constructor Create(ADriver:TFileSysDriver);  
private
 
protected
function GetName:String; override;  
public
function RecognizePartitionId(APartitionId:Byte):Boolean; override;  
function RecognizeBootSector(ABootSector:PBootSector; const AStartSector,ASectorCount:Int64):Boolean; override;  
 
function RecognizePartition(APartition:TDiskPartition):Boolean; override;  
function RecognizeVolume(AVolume:TDiskVolume):Boolean; override;  
function MountVolume(AVolume:TDiskVolume; ADrive:TDiskDrive):Boolean; override;  

EXTFS partitioner

TEXTFSPartitioner = class(TDiskPartitioner)

constructor Create(ADriver:TFileSysDriver; ARecognizer:TRecognizer);  
private
 
protected
function CheckLogical(ADevice:TDiskDevice; AParent:TDiskPartition; APartitionId:Byte):Boolean; override;  
function CheckExtended(ADevice:TDiskDevice; AParent:TDiskPartition; APartitionId:Byte):Boolean; override;  
 
function GetPartitionId(ADevice:TDiskDevice; AParent:TDiskPartition; AStart,ACount:LongWord; APartitionId:Byte):Byte; override;  
 
function InitPartition(ADevice:TDiskDevice; AParent:TDiskPartition; AStart,ACount:LongWord; APartitionId:Byte):Boolean; override;  
public
function AcceptPartition(ADevice:TDiskDevice; APartition,AParent:TDiskPartition; APartitionId:Byte):Boolean; override;  

EXTFS filesystem

TEXTFSFileSystem = class(TFileSystem)

constructor Create(ADriver:TFileSysDriver; AVolume:TDiskVolume; ADrive:TDiskDrive);  
destructor Destroy; override;  
private
 
public
 


Public variables


None defined

Function declarations



Initialization functions

procedure EXTFSInit;
Description: To be documented
Note None documented


procedure EXTFSQuit;
Description: To be documented
Note None documented


Return to Unit Reference