git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
KernelLand - Better node chaching code
[tpg/acess2.git]
/
KernelLand
/
Modules
/
Filesystems
/
Ext2
/
write.c
diff --git
a/KernelLand/Modules/Filesystems/Ext2/write.c
b/KernelLand/Modules/Filesystems/Ext2/write.c
index
766a0e6
..
207bf87
100644
(file)
--- 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
*/
/**
* \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;
{
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);
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
Ext2_int_ReadInode(disk, Node->Inode, &inode);
// Get the ammount of space already allocated
UCC
git Repository :: git.ucc.asn.au