[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: autoclean mode for tmpfs
On Sun, Aug 07, 2011 at 02:48:14PM -0400, Mouse wrote:
> > lrwx------ 1 dholland notmp 3 Aug 7 12:32 baz -> bar
> > valkyrie% rmdir baz
> > rmdir: baz: Not a directory
> ! Hm, I see that too.
> I wonder where I got the idea it followed symlinks.
Probably because in sys_rmdir:
NDINIT(&nd, DELETE, LOCKPARENT | LOCKLEAF | TRYEMULROOT, pb);
#define FOLLOW 0x00000040 /* follow symbolic links */
#define NOFOLLOW 0x00000000 /* do not follow symbolic links
This is one of the reasons behavior like this should be controlled by
booleans or enums rather than flags...
> My apologies for spreading misinformation.
I was worried for a moment :-)
David A. Holland
Main Index |
Thread Index |