From owner-freebsd-stable@FreeBSD.ORG Tue Feb 12 14:58:50 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E477CD58; Tue, 12 Feb 2013 14:58:50 +0000 (UTC) (envelope-from h.schmalzbauer@omnilan.de) Received: from host.omnilan.net (s1.omnilan.net [62.245.232.135]) by mx1.freebsd.org (Postfix) with ESMTP id 6D7E29A3; Tue, 12 Feb 2013 14:58:49 +0000 (UTC) Received: from titan.inop.wdn.omnilan.net (titan.inop.wdn.omnilan.net [172.21.3.1]) (authenticated bits=0) by host.omnilan.net (8.13.8/8.13.8) with ESMTP id r1CF3x77088542 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Feb 2013 16:03:59 +0100 (CET) (envelope-from h.schmalzbauer@omnilan.de) Message-ID: <511A58A8.50703@omnilan.de> Date: Tue, 12 Feb 2013 15:58:48 +0100 From: Harald Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-stable@freebsd.org, freebsd-jail@freebsd.org Subject: Re: problem stoping jails with jail(8), jail.conf and mount.fstab References: <511A55F9.4080205@omnilan.de> In-Reply-To: <511A55F9.4080205@omnilan.de> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDBA6D07CE516CA02A636B3B1" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2013 14:58:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDBA6D07CE516CA02A636B3B1 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable schrieb Harald Schmalzbauer am 12.02.2013 15:47 (localtime): > Hello, > > on 9.1-R, I highly appreciate the new jail(8) and jail.conf > capabilities. Thanks for that extension! > > But I have one problem: If I want to stop a jail with 'jaill -r > jailname', I get "umount: unmount of /.jail.jailname failed: Device bus= y" > > It seems to me that the order of fstab.jailname entries are not reverte= d > by jail(8) when shutting down/umounting. > My C skills don't allow me to verify/fix that in usr.sbin/jail/command.= c Btw, experimental falsifying isn't the problem: fstab.jail1: /dev/gpt/jail1ROOT /.jail.jail1 ufs ro 0 0 /dev/gpt/jail1VAR /.jail.jail1/var ufs rw,noatime 0 0 Starting jail with 'jail -c jail1': everything fine. Stoping jail with 'jail -r jail1': error when fstab.jail1 is like above, but error vanishes if I revert the two lines above before stoping! So the root cause seems to be obvious. But like mentioned, I can't fix that myself :-( Thanks, -Harry --------------enigDBA6D07CE516CA02A636B3B1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAlEaWKkACgkQLDqVQ9VXb8gXqQCfao/pVXU0L61n3gh2nNr+Sx+h aG8Anjzj3xaXJz/hSmbOZZHXu0agge+e =q8WV -----END PGP SIGNATURE----- --------------enigDBA6D07CE516CA02A636B3B1--