From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Dichtel Subject: Behavior of 'mount --bind' and umount Date: Fri, 27 Dec 2013 18:18:49 +0100 Message-ID: <52BDB679.7070102@6wind.com> Reply-To: nicolas.dichtel@6wind.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: linux-fsdevel@vger.kernel.org Return-path: Received: from mail-wg0-f53.google.com ([74.125.82.53]:33366 "EHLO mail-wg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754605Ab3L0RSw (ORCPT ); Fri, 27 Dec 2013 12:18:52 -0500 Received: by mail-wg0-f53.google.com with SMTP id k14so8426226wgh.20 for ; Fri, 27 Dec 2013 09:18:51 -0800 (PST) Received: from ?IPv6:2a01:e35:8b63:dc30:d5b9:f078:8f3a:c30? ([2a01:e35:8b63:dc30:d5b9:f078:8f3a:c30]) by mx.google.com with ESMTPSA id kr10sm19645412wjc.22.2013.12.27.09.18.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Dec 2013 09:18:50 -0800 (PST) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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