getdents64 problem
Mogens Kjaer
mk@crc.dk
Mon Jan 22 22:59:00 GMT 2001
Ulrich Drepper wrote:
>
> In any case, I don't think there is a bug at all in glibc.
You're probably right; however arguing who's fault it is
doesn't help me very much, I just want it to work.
I guess a lot of programs have this construction
x=opendir("path");
while((y=readdir(x))!=NULL)
{
do something
}
closedir(x);
and it would fail silently when reading from an SGI via NFS,
as one seldomly checks for errors when readdir has return NULL.
Persuading SGI to change their NFS code to return something
different for the offset of the last file would probably
be difficult...
BTW, I tried removing the 32bitclients option
in the SGI /etc/exports file, that didn't help. I would have
hoped that an offset of -1L was returned, but it isn't.
That leaves me with two options, either patch the Linux
kernel or glibc. I found it easier to do the second.
What do the rest of you think?
Mogens
--
Mogens Kjaer, Carlsberg Laboratory, Dept. of Chemistry
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk@crc.dk Homepage: http://www.crc.dk
More information about the Libc-alpha
mailing list