From: John Hodge Date: Sat, 26 Sep 2009 02:01:03 +0000 (+0800) Subject: Fixed support for indeterminate sized directories X-Git-Tag: rel0.06~496 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f99096106a98f0616662ad05a55991220691151b;p=tpg%2Facess2.git Fixed support for indeterminate sized directories --- diff --git a/Kernel/vfs/dir.c b/Kernel/vfs/dir.c index b7133c50..5702986c 100644 --- a/Kernel/vfs/dir.c +++ b/Kernel/vfs/dir.c @@ -148,7 +148,7 @@ int VFS_ReadDir(int FD, char *Dest) return 0; } - if(h->Position >= h->Node->Size) { + if(h->Node->Size != -1 && h->Position >= h->Node->Size) { LEAVE('i', 0); return 0; } diff --git a/Kernel/vfs/fs/fat.c b/Kernel/vfs/fs/fat.c index c0c3fbab..dd5e8518 100644 --- a/Kernel/vfs/fs/fat.c +++ b/Kernel/vfs/fs/fat.c @@ -489,8 +489,6 @@ tVFS_Node *FAT_int_CreateNode(tVFS_Node *parent, fat_filetable *ft, char *LongFi ENTER("pParent pFT sLongFileName", parent, ft, LongFileName); - // Get Name - //node.Name = FAT_int_CreateName(parent, ft, LongFileName); // Set Other Data node.Inode = ft->cluster | (ft->clusterHi<<16); node.Size = ft->size;