readdir and d_ino set to 0

Eric Norum norume@aps.anl.gov
Fri Sep 4 05:38:00 GMT 2009


If I recall my Unix V7 code correctly, I think that inode 0 was  
reserved for holding a list of bad blocks.  Of course if your disk had  
a bad block that was *in* the inode table you were pretty much out of  
luck.....

On Sep 3, 2009, at 7:09 PM, Chris Johns wrote:

> Hello,
>
> In newlib-1.17.0 used in RTEMS I see readdir has this code:
>
>    if (dp->d_ino == 0)
>        continue;
>
> It would seem to me an ino of 0 is not allowed. Does anyone know why  
> 0 is handled this way ?
>
> Regards
> Chris

-- 
Eric Norum <norume@aps.anl.gov>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793




More information about the Newlib mailing list