Re: If not readdir() then what?

From: Alan Cox
Date: Tue Apr 10 2007 - 17:45:45 EST


> A READDIR request contains either a cookie or a filename. Either mean
> "This identifies the last name I got from you, give me the next one".
>
> Is there something that makes that interface problematic?

Another client may have removed the name and re-added a new file with
that name. At this point most file systems may not have placed it at the
same spot in the directory.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/