lkml.org 
[lkml]   [2004]   [Feb]   [10]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 10 Feb 2004 18:41:16 -0700
From"Kevin P. Fleming" <>
SubjectRe: devfs vs udev, thoughts from a devfs user
Greg KH wrote:

> Doesn't work for what we want here:
>
> $ mkdir /tmp/a /tmp/b
> $ mount -t ramfs none /tmp/a
> $ touch /tmp/a/foo
> $ mount --move /tmp/a /tmp/b
> $ ls /tmp/b
> foo
> $ umount /tmp/a
> $ ls /tmp/b
> $

That seems very odd, the "umount /tmp/a" should have failed, given than
nothing is mounted there any longer.

Also, what will happen if something on the filesystem on /tmp/a is open
(say, /dev/console)? I was thinking that this process might work better:

$ mkdir /tmp/a /tmp/b
$ mount -t ramfs test /tmp/a
$ touch /tmp/a/foo
$ mount --bind /tmp/a /tmp/b
$ ls /tmp/b
foo
$ umount /tmp/a
$ ls /tmp/b
foo


And it does. In fact, it seems to work fine as long as no files are open
on the ramfs when the umount is executed (otherwise -EBUSY).


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

\
 
 \ /
  Last update: 2005-03-22 14:00    [from the cache]
©2003-2009