From owner-freebsd-questions Wed Feb 27 18:34:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id 6568437B41B for ; Wed, 27 Feb 2002 18:34:46 -0800 (PST) Received: (qmail 74961 invoked by uid 100); 28 Feb 2002 02:34:42 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15485.38722.306008.451476@guru.mired.org> Date: Wed, 27 Feb 2002 20:34:42 -0600 To: swear@blarg.net (Gary W. Swearingen) Cc: questions@freebsd.org Subject: Re: mount(8) ignores device name In-Reply-To: <21056453@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.46 (Python 2.2; freebsd-4.5-STABLE-i386) 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 Gary W. Swearingen types: > 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. read the mount_std file page. linprocfs, procfs, and several others don't ever see the "device" field in fstab. Mounting by that name works because of the way mount searches fstab. Fixing it may not be possible. Documenting it would be nice. However, do it on -current, and possibly consult that mail list as well. /dev is now the mount point for devfs by default, and many of the pseudo devices are different. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message