From: Andries.Brouwer@cwi.nl Subject: Re: [RFC] remove pointless mount check Date: Tue, 14 May 2002 14:37:42 +0200 (MEST) Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: Cc: linux-fsdevel@vger.kernel.org Return-path: To: hch@infradead.org, viro@math.psu.edu List-Id: linux-fsdevel.vger.kernel.org I have no idea why but during 2.4 someone put a stupid check in the mount code to check whether device and mount point are the same and refuse to overmount if true. I suppose that someone was me. Such a check may be a bit ad-hoc, but it is really useful. It is because of this test that so few people are bitten by the new semantics of mount. The idea that a filesystem can be mounted several places is not a traditional Unix one. Most users don't know about it. Without the test people, especially GUI users (click to mount), tend to get stacks of identical filesystems mounted the same place. That is only inconvenient and confusing: after an umount the thing is still mounted. Someone who types "mount -a" just wants all filesystems to be mounted, but has no desire for some to be mounted more than once. No, removing this check is a really bad idea. Andries