Filesystem readdir

From: Kasper Dupont (kasperd_at_daimi.au.dk)
Date: 09/30/04


Date: Thu, 30 Sep 2004 15:12:19 +0200

Why does each filesystem's readdir implementation
need to call filldir with "." and ".."? I mean
wouldn't it be simpler if VFS could just return
those two entries on it's own and let the
filesystem code provide only those entries
specific to that filesystem?

-- 
Kasper Dupont


Relevant Pages

  • Re: Filesystem readdir
    ... > I know at least one reason for that: I am writing support for a ... What would happen if VFS added some on it's own? ... entries. ... The root of this filesystem doesn't have dot-dot ...
    (comp.os.linux.development.system)
  • Re: Filesystem readdir
    ... What would happen if VFS added some on it's own? ... VFS IMHO can't tell the meaning of the entries, ... filesystem I am writing support for - every dir has both of them stored ... I am not sure what how you coded in but I recall that part was ...
    (comp.os.linux.development.system)
  • Re: Filesystem readdir
    ... > filesystem code provide only those entries ... which does have the dot and dot-dot entries _stored_ in each ... What would happen if VFS added some on it's own? ...
    (comp.os.linux.development.system)