Date: Wed, 27 Feb 2002 15:33:34 +0000 From: Ceri <setantae@submonkey.net> To: Mike Meyer <mwm-dated-1015253538.970165@mired.org> Cc: questions@freebsd.org Subject: Re: mount -a Message-ID: <20020227153334.GA77684@rhadamanth> In-Reply-To: <15484.62114.185076.33762@guru.mired.org> References: <56194747@toto.iv> <15484.62114.185076.33762@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 27, 2002 at 08:52:18AM -0600, Mike Meyer wrote: > Ceri <setantae@submonkey.net> types: > > From mount(8) : > > > > -a All the filesystems described in fstab(5) are mounted. Excep- > > tions are those marked as ``noauto'', excluded by the -t flag > > (see below), or if they are already mounted (except the root > > filesystem which is always remounted to preserve traditional sin- > > gle user mode behavior). > > > > How does the root filesystem get remounted if there are other filesystems > > mounted which do not ? > > Because that's the way the mount system call is implemented. If you > have a more specific question, I'd be glad to try and answer that, but > I'm not going to try and guess if or what it is. Sorry, thought it was clear. What I mean is : If I have the following filesystems mounted /dev/ad0s1 / /dev/ad1s1 /usr /dev/ad2s1 /usr/obj and [1] try to unmount /usr, then it will fail unless I unmount /usr/obj first. However, [2] if I issue mount -a, then / will get remounted, but /usr and /usr/obj won't, according to the manpage. So I was asking : how come [2] works when [1] doesn't ? If that is how the system call works, then that's the answer to my question - it just seems very strange. Ceri -- keep a mild groove on 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?20020227153334.GA77684>