Re: Odd llseek semantics on directories

2005-08-29 Thread Hans Reiser
vs will respond at the end of the week, he is out at the moment. Thanks for patch Charles, Hans

Re: Odd llseek semantics on directories

2005-08-27 Thread Charles P. Wright
Vladimir, This patch fixes the issue. Thanks, Charles On Tue, 2005-08-23 at 16:06 +0400, Vladimir V. Saveliev wrote: > Hello > > Charles P. Wright wrote: > > Vladimir, > > > > We actually came across this while working on Unionfs in the kernel, > > which uses lseek to inquire about directory p

Re: Odd llseek semantics on directories

2005-08-23 Thread Vladimir V. Saveliev
Hello Charles P. Wright wrote: > Vladimir, > > We actually came across this while working on Unionfs in the kernel, > which uses lseek to inquire about directory positions and then resume > directory reading operations (much like nfsd does). > Ok, please try whether the attached patch makes rei

Re: Odd llseek semantics on directories

2005-08-22 Thread Charles P. Wright
Vladimir, We actually came across this while working on Unionfs in the kernel, which uses lseek to inquire about directory positions and then resume directory reading operations (much like nfsd does). I've attached a user space program that demonstrates the behavior. The relevant strace entries

Re: Odd llseek semantics on directories

2005-08-22 Thread Vladimir V. Saveliev
Hello Charles P. Wright wrote: > Hello, > > I've noticed that Reiser4's behavior deviates from other file systems > when seeking with directories. After reading a directory, if you run > vfs_lseek(dir, 0, SEEK_CUR), then -ENOENT is returned. This means that > you can't pass the identifier back

Odd llseek semantics on directories

2005-08-22 Thread Charles P. Wright
Hello, I've noticed that Reiser4's behavior deviates from other file systems when seeking with directories. After reading a directory, if you run vfs_lseek(dir, 0, SEEK_CUR), then -ENOENT is returned. This means that you can't pass the identifier back to vfs_lseek with SEEK_SET. Charles