TDiskResizer

From Ultibo.org
Revision as of 04:11, 17 May 2018 by Ultibo (Talk | contribs) (Created page with "Return to Unit Filesystem __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Return to Unit Filesystem


Description


To be documented

Class definitions



TDiskResizer = class(TObject)

constructor Create(ADriver:TFileSysDriver; ARecognizer:TRecognizer);  
destructor Destroy; override;  
private
FLock:TSynchronizerHandle;  
FLocalLock:TMutexHandle;  
protected
FDriver:TFileSysDriver;  
FRecognizer:TRecognizer;  
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
public
function ReaderLock:Boolean;  
function ReaderUnlock:Boolean;  
function WriterLock:Boolean;  
function WriterUnlock:Boolean;  
 
function AcceptVolume(AVolume:TDiskVolume; const AStart,ASize:Int64):Boolean; virtual;  
 
function ShrinkVolume(AVolume:TDiskVolume; const AStart,ASize:Int64):Boolean; virtual;  
function ExpandVolume(AVolume:TDiskVolume; const AStart,ASize:Int64):Boolean; virtual;  
 
function AcceptPartition(APartition:TDiskPartition; const AStart,ASize:Int64):Boolean; virtual;  
 
function ShrinkPartition(APartition:TDiskPartition; const AStart,ASize:Int64):Boolean; virtual;  
function ExpandPartition(APartition:TDiskPartition; const AStart,ASize:Int64):Boolean; virtual;  
 
function AcceptImage(AImage:TDiskImage; const ASize:Int64):Boolean; virtual;  
 
function ShrinkImage(AImage:TDiskImage; const ASize:Int64):Boolean; virtual;  
function ExpandImage(AImage:TDiskImage; const ASize:Int64):Boolean; virtual;  


Function declarations



constructor TDiskResizer.Create(ADriver:TFileSysDriver; ARecognizer:TRecognizer);
Description: To be documented
Note None documented


destructor TDiskResizer.Destroy;
Description: To be documented
Note None documented


function TDiskResizer.AcquireLock:Boolean;
Description: To be documented
Note None documented


function TDiskResizer.ReleaseLock:Boolean;
Description: To be documented
Note None documented


function TDiskResizer.ReaderLock:Boolean;
Description: To be documented
Note None documented


function TDiskResizer.ReaderUnlock:Boolean;
Description: To be documented
Note None documented


function TDiskResizer.WriterLock:Boolean;
Description: To be documented
Note None documented


function TDiskResizer.WriterUnlock:Boolean;
Description: To be documented
Note None documented


function TDiskResizer.AcceptVolume(AVolume:TDiskVolume; const AStart,ASize:Int64):Boolean;
Description: To be documented
Note Caller must hold the volume lock


function TDiskResizer.ShrinkVolume(AVolume:TDiskVolume; const AStart,ASize:Int64):Boolean;
Description: Caller must hold the volume writer lock
Note None documented


function TDiskResizer.ExpandVolume(AVolume:TDiskVolume; const AStart,ASize:Int64):Boolean;
Description: To be documented
Note Caller must hold the volume writer lock


function TDiskResizer.AcceptPartition(APartition:TDiskPartition; const AStart,ASize:Int64):Boolean;
Description: To be documented
Note Caller must hold the partition lock


function TDiskResizer.ShrinkPartition(APartition:TDiskPartition; const AStart,ASize:Int64):Boolean;
Description: To be documented
Note Caller must hold the partition writer lock


function TDiskResizer.ExpandPartition(APartition:TDiskPartition; const AStart,ASize:Int64):Boolean;
Description: Caller must hold the partition writer lock
Note None documented


function TDiskResizer.AcceptImage(AImage:TDiskImage; const ASize:Int64):Boolean;
Description: To be documented
Note Caller must hold the image lock


function TDiskResizer.ShrinkImage(AImage:TDiskImage; const ASize:Int64):Boolean;
Description: To be documented
Note Caller must hold the image writer lock


function TDiskResizer.ExpandImage(AImage:TDiskImage; const ASize:Int64):Boolean;
Description: To be documented
Note Caller must hold the image writer lock


Return to Unit Reference