X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FFilesystems%2FExt2%2Fwrite.c;h=22e256bfc3cf76d87136d66afd55a05ab4c362bd;hb=8e54c94fa54a975f1eea55e4dda475251d5445b6;hp=60b176ca56051c3cac8ea43476ceaad352e93656;hpb=880dd63bfcba522dab0a75cc63fdec1d04ff8c89;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Filesystems/Ext2/write.c b/KernelLand/Modules/Filesystems/Ext2/write.c index 60b176ca..22e256bf 100644 --- a/KernelLand/Modules/Filesystems/Ext2/write.c +++ b/KernelLand/Modules/Filesystems/Ext2/write.c @@ -119,7 +119,12 @@ addBlocks: } base = block * disk->BlockSize; VFS_WriteAt(disk->FD, base, retLen, Buffer); + + // TODO: When should the size update be committed? inode.i_size += retLen; + Node->Size += retLen; + Node->Flags |= VFS_FFLAG_DIRTY; + retLen = 0; ret: // Makes sure the changes to the inode are committed