Skip site navigation (1)Skip section navigation (2)
Date:      27 Feb 2002 11:39:46 -0800
From:      swear@blarg.net (Gary W. Swearingen)
To:        freebsd-questions@freebsd.org
Subject:   mount(8) ignores device name
Message-ID:  <civgciu325.gci@localhost.localdomain>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?civgciu325.gci>