Re: renaming the current working directory (cwd)

2008-01-12 Thread Matthew Dillon
:Hi. : :If my cwd gets renamed by another process, it disappears out from under :me. : :To reproduce: : :$ mkdir zzz1 :$ cd zzz1 : :In another shell: : :$ mv zzz1 zzz2 : :Back in the first shell: : :$ ls :ls: .: No such file or directory :$ cd .. :cd: no such file or directory: .. That's a

Re: renaming the current working directory (cwd)

2008-01-12 Thread Bill Hacker
Vincent Stemen wrote: On 2008-01-12, Bill Hacker [EMAIL PROTECTED] wrote: Vincent wrote: Hi. If my cwd gets renamed by another process, it disappears out from under me. To reproduce: $ mkdir zzz1 $ cd zzz1 In another shell: $ mv zzz1 zzz2 Back in the first shell: $ ls ls: .: No such

Re: renaming the current working directory (cwd)

2008-01-12 Thread Bill Hacker
Vincent Stemen wrote: *snip* the name to stay the same, not just the inode. I also verified it was not a characteristic of the specific shell. I got the same behavior in Zshell as well as sh. I overlooked that, but I don't *think* the shell makes a difference on this issue. FWIW - I

rename patch (was Re: renaming the current working directory (cwd))

2008-01-12 Thread Matthew Dillon
Here is my proposed patch. Please try it out. It needs some testing so I'll commit it in a week or so. The HAMMER bit may wind up getting committed sooner but I think it will be compatible with the original namecache code (just not as optimal). The history of cache_rename()