3 * Ext2 Driver Version 1
11 #define EXT2_UPDATE_WRITEBACK 1
19 tExt2_SuperBlock SuperBlock;
27 extern tVFS_NodeType gExt2_FileType;
28 extern tVFS_NodeType gExt2_DirType;
32 extern void Ext2_CloseFile(tVFS_Node *Node);
33 extern Uint64 Ext2_int_GetBlockAddr(tExt2_Disk *Disk, Uint32 *Blocks, int BlockNum);
34 extern void Ext2_int_UpdateSuperblock(tExt2_Disk *Disk);
35 extern Uint32 Ext2_int_AllocateInode(tExt2_Disk *Disk, Uint32 Parent);
36 extern void Ext2_int_DereferenceInode(tExt2_Disk *Disk, Uint32 Inode);
37 extern int Ext2_int_ReadInode(tExt2_Disk *Disk, Uint32 InodeId, tExt2_Inode *Inode);
38 extern int Ext2_int_WriteInode(tExt2_Disk *Disk, Uint32 InodeId, tExt2_Inode *Inode);
40 extern int Ext2_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]);
41 extern tVFS_Node *Ext2_FindDir(tVFS_Node *Node, const char *FileName, Uint Flags);
42 extern tVFS_Node *Ext2_MkNod(tVFS_Node *Node, const char *Name, Uint Mode);
43 extern int Ext2_Link(tVFS_Node *Parent, const char *Name, tVFS_Node *Node);
44 extern tVFS_Node *Ext2_int_CreateNode(tExt2_Disk *Disk, Uint InodeId);
45 extern int Ext2_int_WritebackNode(tExt2_Disk *Disk, tVFS_Node *Node);
47 extern size_t Ext2_Read(tVFS_Node *node, off_t offset, size_t length, void *buffer, Uint Flags);
49 extern size_t Ext2_Write(tVFS_Node *node, off_t offset, size_t length, const void *buffer, Uint Flags);
50 extern Uint32 Ext2_int_AllocateBlock(tExt2_Disk *Disk, Uint32 LastBlock);
51 extern void Ext2_int_DeallocateBlock(tExt2_Disk *Disk, Uint32 Block);
52 extern int Ext2_int_AppendBlock(tExt2_Disk *Disk, tExt2_Inode *Inode, Uint32 Block);