Messages in this thread | | | From | Rob Landley <> | Subject | Re: Which process context does /sbin/hotplug run in? | Date | Mon, 15 May 2006 15:59:09 -0400 |
| |
On Monday 15 May 2006 12:17 am, Kyle Moffett wrote: > > I can CD into them endlessly, and both "ls -lR" and "find ." report > > cycles in the tree, which surprised me that they had a specific > > error message for that, actually. Good enough for me. :) > > Odd, I'm unable to replicate that behavior here. If I run "ls /var/ > sub2/sub2" I don't get any entries. Find and ls -lR have error > messages of that because it can occasionally be triggered with > symlinks and such.
Perhaps I copied it down wrong. I did this in a 2.6.16 UML instance...
sh-3.00# mount -t tmpfs /tmp /tmp sh-3.00# cd /tmp sh-3.00# mkdir woot sh-3.00# mount --bind woot /var sh-3.00# cd /var sh-3.00# mkdir sub sh-3.00# mount --move /tmp sub sh-3.00# ls -lR .: total 0 drwxrwxrwt 3 root root 60 May 15 15:57 sub
./sub: total 0 drwxr-xr-x 3 root root 60 May 15 15:57 woot ls: not listing already-listed directory: ./sub/woot sh-3.00# find . . ./sub find: Filesystem loop detected; `./sub/woot' has the same device number and inode as a directory which is 2 levels higher in the filesystem hierarchy. ./sub/woot sh-3.00#
Works for me. :)
> -- > Simple things should be simple and complex things should be possible > -- Alan Kay
And crazy things fun. :)
Rob -- Never bet against the cheap plastic solution. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |