Re: [RFC,PATCH] libfs dcache_readdir() and dcache_dir_lseek() bugfix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 04, Miklos Szeredi wrote:

> > 
> > Well, glibc is that stupid and triggers the bug.
> 
> Seems to me, the simple solution is to upgrade your glibc.
> 

This is SLES8. You don't want to update the glibc.

> > 
> > True. Seeking to that offset should at least fail and shouldn't stop at the
> > new entry.
> 
> No it should _not_ fail, it should continue from the next _existing_
> entry.
> 

And how do we achieve this for all the libfs users like tmpfs etc.? At least
with my patch you can seek to the offsets of existing entries. Even that isn't
possible at the moment if you remove directory entries. But I don't know how to
implement that for the offsets of unlinked entries.

> 
> No good.  Same problem if you move out then move back the entry.
> 

Yeah, I know.

Regards,
	Jan Blunck

-- 
Jan Blunck                                               [email protected]
SuSE LINUX AG - A Novell company
Maxfeldstr. 5                                          +49-911-74053-608
D-90409 Nürnberg                                      http://www.suse.de
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux