From owner-freebsd-jail@FreeBSD.ORG Tue Jul 28 15:19:52 2009 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0050106564A for ; Tue, 28 Jul 2009 15:19:52 +0000 (UTC) (envelope-from askjuise@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id 68E358FC08 for ; Tue, 28 Jul 2009 15:19:52 +0000 (UTC) (envelope-from askjuise@gmail.com) Received: by qw-out-2122.google.com with SMTP id 3so53413qwe.7 for ; Tue, 28 Jul 2009 08:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=7L/JHAtHZ4CfGLVX1190tO6kUQEyCM3Lsqo9YH5AniQ=; b=g6+ECNdwWdyPiqBnbCeLN3rGxGgNRdPkQ9eWLulHRPWxIWXixoucN+SzUcWXeVs3+c cphMhSOGaZ0OOy08A2QkyshdCs0XOScO1NysPKD+Z4Xi8aGHZ/ktgTFvK7fy24/yYzpt DsMNI8CqWVamkBE8XIQxeCC3Wqzu4wzSmclkc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=xswJi6CrDdC15X5bt1aDt39j2Ny0zNb3Sh3bmd3TZfpnXYWGiVYAAFMMYyInxNb6Gz nQdP20Bolwn4ocA+wfe9Izo5KDP13VTipukTqjwX/rPprGRBfHTVg0o5/dahtq8grxVo RTJ8D3ta1pSslb60GVszC4U73KlFT4s6MDfO0= MIME-Version: 1.0 Received: by 10.150.182.1 with SMTP id e1mr13718762ybf.306.1248792538331; Tue, 28 Jul 2009 07:48:58 -0700 (PDT) In-Reply-To: <9e20d71e0907280716m3968f42pe7aeed2b0286302c@mail.gmail.com> References: <9e20d71e0907280716m3968f42pe7aeed2b0286302c@mail.gmail.com> Date: Tue, 28 Jul 2009 23:48:58 +0900 Message-ID: <2ec071a80907280748p336f6356p78d2debcfd8cd18b@mail.gmail.com> From: Alexander Petrovsky To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Jails on ZFS X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2009 15:19:52 -0000 > > Hi, > > I'm playing with jails on ZFS and everything is fine, except annoying > warnings (hopefully just warnings) when doing: > # /etc/rc.d/jail stop > > zfs_umount:971[0]: Force unmount is experimental - report any problems. > ... > zfs_umount:971[0]: Force unmount is experimental - report any problems. > > > I found that in rc.d/jail secure_umount() it always do "umount -f " > > Maybe it's better first try to unmount without -f and then use force? > > > --- /etc/rc.d/jail 2009-07-22 23:29:29.000000000 +0300 > +++ /etc/rc.d/jail 2009-07-28 14:00:19.998368729 +0300 > @@ -270,7 +270,7 @@ > _dir=3D$1 > > if is_current_mountpoint ${_dir}; then > - umount -f ${_dir} >/dev/null 2>&1 > + umount ${_dir} >/dev/null 2>&1 || { sleep 2; umount ${_di= r} > >/dev/null 2>&1 || umount -f ${_dir} >/dev/null 2>&1; } > else > debug "Nothing mounted on ${_dir} - not unmounting" > fi > Hi, it is may be good idea. But, I can't understand your code, why you do - umount ${_dir} >/dev/null 2>&1 || { sleep 2; umount ${_dir} >/dev/null 2>&= 1 || umount -f ${_dir} >/dev/null 2>&1; } instead umount ${_dir} >/dev/null 2>&1 || umount -f ${_dir} >/dev/null 2>&1 ? --=20 =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC =D0=9F=D0=B5= =D1=82=D1=80=D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=B9 =D0=90=D0=BB=D0=B5=D0=BA= =D1=81=D0=B0=D0=BD=D0=B4=D1=80, With the best regards Alexander Petrovsky, ICQ: 350342118 Jabber: juise@jabber.ru Phone: +7 914 8 820 815