X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FFilesystems%2FExt2%2Fwrite.c;h=207bf87bb369a7605a3f371ce6c87d5ba7458b39;hb=015f48988e0ff398409d71dfc692005ab439490a;hp=766a0e662c51f451767f94f96d290f65d304f996;hpb=e4342ad9de52043cb8f820643794dc44076f9bd9;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Filesystems/Ext2/write.c b/KernelLand/Modules/Filesystems/Ext2/write.c index 766a0e66..207bf87b 100644 --- a/KernelLand/Modules/Filesystems/Ext2/write.c +++ b/KernelLand/Modules/Filesystems/Ext2/write.c @@ -20,7 +20,7 @@ void Ext2_int_DeallocateBlock(tExt2_Disk *Disk, Uint32 Block); /** * \brief Write to a file */ -size_t Ext2_Write(tVFS_Node *Node, off_t Offset, size_t Length, const void *Buffer) +size_t Ext2_Write(tVFS_Node *Node, off_t Offset, size_t Length, const void *Buffer, Uint Flags) { tExt2_Disk *disk = Node->ImplPtr; tExt2_Inode inode; @@ -31,7 +31,9 @@ size_t Ext2_Write(tVFS_Node *Node, off_t Offset, size_t Length, const void *Buff int bNewBlocks = 0; Debug_HexDump("Ext2_Write", Buffer, Length); - + + // TODO: Handle (Flags & VFS_IOFLAG_NOBLOCK) + Ext2_int_ReadInode(disk, Node->Inode, &inode); // Get the ammount of space already allocated