3 * Ext2 Driver Version 1
7 * \brief Second Extended Filesystem Driver
10 #define _EXT2_COMMON_H
15 #define EXT2_UPDATE_WRITEBACK 1
23 tExt2_SuperBlock SuperBlock;
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 int Ext2_int_ReadInode(tExt2_Disk *Disk, Uint32 InodeId, tExt2_Inode *Inode);
36 extern int Ext2_int_WriteInode(tExt2_Disk *Disk, Uint32 InodeId, tExt2_Inode *Inode);
38 extern char *Ext2_ReadDir(tVFS_Node *Node, int Pos);
39 extern tVFS_Node *Ext2_FindDir(tVFS_Node *Node, const char *FileName);
40 extern int Ext2_MkNod(tVFS_Node *Node, const char *Name, Uint Flags);
41 extern int Ext2_Link(tVFS_Node *Parent, tVFS_Node *Node, const char *Name);
43 extern Uint64 Ext2_Read(tVFS_Node *node, Uint64 offset, Uint64 length, void *buffer);
45 extern Uint64 Ext2_Write(tVFS_Node *node, Uint64 offset, Uint64 length, const void *buffer);