From owner-freebsd-questions Wed Feb 27 11:37:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 27F5037B402 for ; Wed, 27 Feb 2002 11:37:44 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id CC079BD3F for ; Wed, 27 Feb 2002 11:37:43 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id LAA25300 for ; Wed, 27 Feb 2002 11:37:43 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id g1RJdka08473; Wed, 27 Feb 2002 11:39:46 -0800 (PST) (envelope-from swear@blarg.net) To: freebsd-questions@freebsd.org Subject: mount(8) ignores device name From: swear@blarg.net (Gary W. Swearingen) Date: 27 Feb 2002 11:39:46 -0800 Message-ID: Lines: 27 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've observed a behavior of mount(8) which seems wrong and am wondering what other's think of it; specifically whether it deserves a PR. $ tail -1 /etc/fstab asdf /compat/linux/proc linprocfs rw,noauto 0 0 $ mount asdf $ cat /compat/linux/proc/version FreeBSD 4.5-PRERELEASE #0: Wed Dec 26 18:41:29 PST 2001 $ umount asdf umount: asdf: not currently mounted $ mount /dev/ad0s4a on / (ufs, local) procfs on /proc (procfs, local) linprocfs on /usr/compat/linux/proc (linprocfs, local) See how it ignores the device name from /etc/fstab and makes up it's own name so that you can't unmount it with the name it was mounted with unless you name it "linprocfs", which isn't the name suggested in linprocfs(5)? If this doesn't need fixing, I think I'll at least suggest a new note in the mount(8) and linproc(5) man pages. Another thing I noticed was that if I used "linproc" in /etc/fstab, it would mount "/compat/linux/proc" (no "/usr") on "linprocfs". To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message