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 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 char *Ext2_ReadDir(tVFS_Node *Node, int Pos);
41 extern tVFS_Node *Ext2_FindDir(tVFS_Node *Node, const char *FileName);
42 extern int Ext2_MkNod(tVFS_Node *Node, const char *Name, Uint Flags);
43 extern int Ext2_Link(tVFS_Node *Parent, const char *Name, tVFS_Node *Node);
45 extern size_t Ext2_Read(tVFS_Node *node, off_t offset, size_t length, void *buffer);
47 extern size_t Ext2_Write(tVFS_Node *node, off_t offset, size_t length, const void *buffer);