Re: VFS bug

看板DFBSD_kernel作者時間21年前 (2004/11/29 04:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/6 (看更多)
On Sun, Nov 28, 2004 at 11:30:36AM -0800, Matthew Dillon wrote: > > :Shouldn't `mkdir /tmp/aaa && cd /tmp/aaa && rmdir .` fail? > : > :-- > :Michal Belczyk > > I'm not sure what pax is trying to do there, but it looks like > something is rmdir'ing the directory you are CD'd into. If the > directory is not empty then the rmdir will fail which is why creating > the dummy file seemms to fix the problem. > > Once a directory is rmdir'd, that's it... it's dead, even if you are > CD'd into it. I was asking because `rmdir .` fails on FreeBSD: /* * No rmdir "." please. */ if (nd.ni_dvp == vp) { error = EINVAL; goto out; } > Could you ktrace the operation (ktrace -f /tmp/kt.out -i pax ....) > and put the trace file up somewhere where we can download it (it > will be too large to post) ? It's at http://vanity.bsd.krakow.pl/kt.out -- Michal Belczyk
文章代碼(AID): #11gYw000 (DFBSD_kernel)
文章代碼(AID): #11gYw000 (DFBSD_kernel)