title: how are directories implemented in UNIX filesystem?
body: <p>This question is extension to <a href="https://unix.stackexchange.com/questions/18605/how-are-directories-implemented-in-unix-filesystems">https://unix.stackexchange.com/questions/18605/how-are-directories-implemented-in-unix-filesystems</a></p>
  
  <p>I'm aiming to implement basic filesystem: After reading inode number and name we come to know Name of file and hence we can list directory contents but we can't determine type of entry: whether it's a file or a file.
  If there are 1000 entries in directory then reading 1000 inodes just to determine whether it is file or directory looks too silly.</p>
  
  <p>Am I missing something here or it is this way only? </p>