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
12 char *NTFS_ReadDir(tVFS_Node *Node, int Pos);
13 tVFS_Node *NTFS_FindDir(tVFS_Node *Node, char *Name);
14 Uint64 NTFS_int_IndexLookup(Uint64 Inode, const char *IndexName, const char *Str);
18 * \brief Get the name of an indexed directory entry
20 char *NTFS_ReadDir(tVFS_Node *Node, int Pos)
26 * \brief Get an entry from a directory by name
28 tVFS_Node *NTFS_FindDir(tVFS_Node *Node, char *Name)
30 tNTFS_Disk *disk = Node->ImplPtr;
31 Uint64 inode = NTFS_int_IndexLookup(Node->Inode, "$I30", Name);
34 if(!inode) return NULL;
38 return Inode_CacheNode(disk->CacheHandle, &node);
42 * \brief Scans an index for the requested value and returns the associated ID
44 Uint64 NTFS_int_IndexLookup(Uint64 Inode, const char *IndexName, const char *Str)