Continued new volume management stuff.

This commit is contained in:
2021-06-25 01:48:20 +01:00
committed by aaronhance
parent 97e1a18253
commit da36f6fabb
6 changed files with 202 additions and 56 deletions

View File

@ -10,14 +10,16 @@ interface
uses
console,
storagemanagement,
util, terminal,
util,
terminal,
lmemorymanager,
strings,
lists,
tracer,
serial,
rtc;
rtc,
volumemanager,
storagetypes;
type
@ -907,7 +909,7 @@ begin
volume^.sectorSize:= PBootRecord(buffer)^.sectorSize;
volume^.freeSectors:= 1000000; //TODO implement get free sectors need FSINFO implemented first
volume^.filesystem := @filesystem;
storagemanagement.register_volume(disk, volume);
// storagemanagement.register_volume(disk, volume); TODO repalce with new thing
end;
kfree(buffer);
@ -917,6 +919,7 @@ procedure init();
begin
push_trace('fat32.init()');
filesystem.sName:= 'FAT32';
filesystem.system_id:= $00;
filesystem.readDirCallback:= @readDirectoryGen;
filesystem.createDirCallback:= @writeDirectoryGen;
filesystem.createcallback:= @create_volume;
@ -924,7 +927,7 @@ begin
filesystem.writecallback:= @writeFile;
filesystem.readcallback := @readFile;
storagemanagement.register_filesystem(@filesystem);
volumemanager.register_filesystem(@filesystem);
end;
end.