Re: [NFS] Re: Make NFS userspace and server directories cookies independant [patch, fc3, 2.6.10-1.766_FC3]

2005-03-22 Thread Olivier Galibert
On Tue, Mar 22, 2005 at 05:00:07PM +0100, Olivier Galibert wrote: > On Mon, Mar 21, 2005 at 07:22:16PM -0500, Trond Myklebust wrote: > > This sort of thing worries me: I think we can do better by hooking > > lseek() on directories. I'll see what I can do. > > And the patch is buggy somehow, someti

Re: Make NFS userspace and server directories cookies independant [patch, fc3, 2.6.10-1.766_FC3]

2005-03-22 Thread Olivier Galibert
On Mon, Mar 21, 2005 at 07:22:16PM -0500, Trond Myklebust wrote: > This sort of thing worries me: I think we can do better by hooking > lseek() on directories. I'll see what I can do. And the patch is buggy somehow, sometimes loses entries. Keep it on hold whie I trace the probm and fix it please

Re: Make NFS userspace and server directories cookies independant [patch, fc3, 2.6.10-1.766_FC3]

2005-03-21 Thread Trond Myklebust
ty den 22.03.2005 Klokka 01:02 (+0100) skreiv Olivier Galibert: > On Mon, Mar 21, 2005 at 12:46:58PM -0500, Trond Myklebust wrote: > + if (filp->f_pos == ctx->dir_pos) > + desc->target_cookie = ctx->dir_cookie; > + else > + desc->target_cookie = 0; This sort of thi

Re: Make NFS userspace and server directories cookies independant [patch, fc3, 2.6.10-1.766_FC3]

2005-03-21 Thread Olivier Galibert
On Mon, Mar 21, 2005 at 12:46:58PM -0500, Trond Myklebust wrote: > må den 21.03.2005 Klokka 17:21 (+0100) skreiv Olivier Galibert: > > > Patch is against a fedora core 3 2.6.10, it requires minor > > modifications (context change, not contents) in the nfs_do_filldir par > > of the dir.c change to

Re: Make NFS userspace and server directories cookies independant [patch, fc3, 2.6.10-1.766_FC3]

2005-03-21 Thread Trond Myklebust
må den 21.03.2005 Klokka 17:21 (+0100) skreiv Olivier Galibert: > Patch is against a fedora core 3 2.6.10, it requires minor > modifications (context change, not contents) in the nfs_do_filldir par > of the dir.c change to account for the dirent addition to apply to > 2.6.11. I can update it if u

Make NFS userspace and server directories cookies independant [patch, fc3, 2.6.10-1.766_FC3]

2005-03-21 Thread Olivier Galibert
Following Trond's advice, I made a patch to make the userspace nfs directory cookies independant of the nfs server ones. It nows behaves pretty much identically to tmpfs and friends, with f_pos being the entry number and a 1-entry cache to ensure that you can read part of the directory, delete fil