On 03/11/2016 10:20 PM, Andreas Dilger wrote: > On Mar 11, 2016, at 10:34 AM, Florian Weimer <fweimer@xxxxxxxxxx> > wrote: >> >> Is it possible that getdents returns a zero inode number for a >> name which actually has a file (or directory, device node etc.) >> behind it? > > The d_ino == 0 value is valid to return and means that the filename > was unlinked from the directory but the entry was not actually > removed. Okay, so it makes sense to skip over entries with d_ino == 0. I found code in glibc's glob implementation which does that and was a bit puzzled and worried that there might be Linux file systems which have zero inode numbers (so that glob would fail on them). Thanks, Florian -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html