Hi, On Mon, Jan 08, 2001 at 09:28:33PM +0100, Andrea Arcangeli wrote: > On Mon, Jan 08, 2001 at 12:58:20PM -0500, Alexander Viro wrote: > > It's a hell of a pain wrt locking. You need to lock the parent, but it can > > This is a no-brainer and bad implementation, but shows it's obviously right > wrt locking. (pseudocode, I ignored the uaccess details and all the other not > relevant things) > > err = sys_getcwd(buf, PAGE_SIZE) > if (!memcmp(path, ".", 2)) > path = buf > err = 2_4_0_sys_rmdir(path) > Could you enlight me on where's the locking pain? Do the above while another process is renaming one of your parents and watch an innocent directory get shot down in flames, or prepare for an incorrect ENOENT. --Stephen - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: `rmdir .` doesn't wor... Eric Lammerts
- Re: `rmdir .` doesn't work in... Albert D. Cahalan
- Re: `rmdir .` doesn't wor... Alexander Viro
- Re: `rmdir .` doesn't wor... Albert D. Cahalan
- Re: `rmdir .` doesn't wor... Alexander Viro
- Re: `rmdir .` doesn't work in 2.4 Linus Torvalds
- Re: `rmdir .` doesn't work in... Andrea Arcangeli
- Re: `rmdir .` doesn't wor... Stephen C. Tweedie
- Re: `rmdir .` doesn't work in 2.4 Alexander Viro
- Re: `rmdir .` doesn't work in 2.4 Andrea Arcangeli
- Re: `rmdir .` doesn't work in 2.4 Stephen C. Tweedie
- Re: `rmdir .` doesn't work in 2.4 Stefan Traby
- Re: `rmdir .` doesn't work in 2.4 Benson Chow
- Re: `rmdir .` doesn't work in 2.4 Andrea Arcangeli
- Re: `rmdir .` doesn't work in 2.4 Wakko Warner
- Re: `rmdir .` doesn't work in 2.4 Andrea Arcangeli
- Re: `rmdir .` doesn't work in... Marc Lehmann
- Re: `rmdir .` doesn't work in 2.4 Bernhard Rosenkraenzer
- Re: `rmdir .` doesn't work in 2.4 Alexander Viro
- Re: `rmdir .` doesn't work in 2.4 Pavel Machek
- Re: `rmdir .` doesn't work in 2.4 Andries . Brouwer