[lkml]   [2006]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Which process context does /sbin/hotplug run in?
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

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 .
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.

Works for me. :)

> --
> Simple things should be simple and complex things should be possible
> -- Alan Kay

And crazy things fun. :)

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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-05-15 22:00    [W:0.080 / U:4.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site