From owner-freebsd-questions Wed Feb 27 7:43:21 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 B444437B400 for ; Wed, 27 Feb 2002 07:43:11 -0800 (PST) Received: (qmail 60345 invoked by uid 100); 27 Feb 2002 15:43:10 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15484.65165.542922.141303@guru.mired.org> Date: Wed, 27 Feb 2002 09:43:09 -0600 To: Ceri Cc: questions@freebsd.org Subject: Re: mount -a In-Reply-To: <20020227153334.GA77684@rhadamanth> References: <56194747@toto.iv> <15484.62114.185076.33762@guru.mired.org> <20020227153334.GA77684@rhadamanth> 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 Ceri types: > 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 ? Because [1] is unmounting the file system, where [2] is updating an already mounted one. Try doing "mount -u /usr", and it should work just fine. To see changes, you want to mount /usr with something set different from the default when you first mount it. > If that is how the system call works, then that's the answer to my question - > it just seems very strange. See the mount(2) man page, in particular the MNT_UPDATE flag. 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