Behavior of 'mount --bind' and umount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I've a question about this command.
Let's take a simple test:
$ touch foo
$ echo foo > foo
$ touch bar
$ mount --bind foo bar
$ cat bar
foo
$ umount foo

On some files system/distribution/kernel, the last command returns an error
(on debian for example):
$ umount foo
umount: foo: not mounted

or unmount bar (on ubuntu for example):
$ umount foo
$ cat bar
$

I did not find the reason of this difference, any help is welcome.


Thank you,
Nicolas
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux