Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jul 1995 19:12:16 -0500 (CDT)
From:      Mike Pritchard <mpp@legarto.minn.net>
To:        terry@cs.weber.edu (Terry Lambert)
Cc:        bde@zeta.org.au, hackers@freebsd.org
Subject:   Re: FS root mount handling discrepancy
Message-ID:  <199507170012.TAA02076@mpp.minn.net>
In-Reply-To: <9507162325.AA17210@cs.weber.edu> from "Terry Lambert" at Jul 16, 95 05:25:21 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> Subsequent changes to the mount interface are also planned:
> 
> o	Move the file system specific mount knowledge (with the
> 	exception of the ":" being used for remote file system
> 	identification) OUT of the mount command and into per
> 	file system code (still hidden under the mount command).
> 	This finally resolves the ability to drop in file systems
> 	at the administrator level as modules without requiring
> 	a kernel rebuild (only a module load).

To totally get off the subject of real time clocks...

There is currently a problem with mount in that:
	mount /xyzzy /xyzzy     (where /xyzzy = a directory)
Panics because the mount syscall locks the directory,
then calls the file system dependent mount, which does
a name lookup on /xyzzy again, and namei dies trying to lock
the vnode again.  I didn't see a clean way to fix this, but
it sounds like with the above changes, the file system
specific mount would have control over both arguments.
That would let it lookup the special device first, validate
it, then lookup the mount point directory and lock it, thus 
avoiding the problem.  I believe that the PR# is kern/434.
Something to keep in mind.
--
Mike Pritchard
mpp@legarto.minn.net
"Go that way.  Really fast.  If something gets in your way, turn"



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