3 * By John Hodge (thePowersGang)
4 * This file is published under the terms of the Acess licence. See the
5 * file COPYING for details.
7 * dir.c - Directory Handling
13 int NTFS_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]);
14 tVFS_Node *NTFS_FindDir(tVFS_Node *Node, const char *Name);
15 Uint64 NTFS_int_IndexLookup(Uint64 Inode, const char *IndexName, const char *Str);
19 * \brief Get the name of an indexed directory entry
21 int NTFS_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX])
27 * \brief Get an entry from a directory by name
29 tVFS_Node *NTFS_FindDir(tVFS_Node *Node, const char *Name)
31 tNTFS_Disk *disk = Node->ImplPtr;
32 Uint64 inode = NTFS_int_IndexLookup(Node->Inode, "$I30", Name);
35 if(!inode) return NULL;
39 return Inode_CacheNode(disk->CacheHandle, &node);
43 * \brief Scans an index for the requested value and returns the associated ID
45 Uint64 NTFS_int_IndexLookup(Uint64 Inode, const char *IndexName, const char *Str)