From owner-freebsd-jail@FreeBSD.ORG Tue Jul 28 14:36:23 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 453FE1065690 for ; Tue, 28 Jul 2009 14:36:23 +0000 (UTC) (envelope-from artis.caune@gmail.com) Received: from mail-bw0-f219.google.com (mail-bw0-f219.google.com [209.85.218.219]) by mx1.freebsd.org (Postfix) with ESMTP id C777A8FC18 for ; Tue, 28 Jul 2009 14:36:22 +0000 (UTC) (envelope-from artis.caune@gmail.com) Received: by bwz19 with SMTP id 19so67853bwz.43 for ; Tue, 28 Jul 2009 07:36:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=4RhRIt38LIkezUNjeI3ygO2NMdNb3ZIN563uCat/h98=; b=gqfSDBS7MqqkL0GezuB+qRX4L93HPefkTQnTH2uimy44Jtt2E8RLCf8di3/OAyRAgA NS9yvAiZjfDwzIYJXEyYH9rCRtJapWDGRHaI2FZ60w3rKBh+ua49BfgV6W0yYcZ5HM84 /MA8i7NqinWbnILtTri/ELoXT7T9SuCOhEaDk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=VhAwYEzEhmTLxKWqdbQj6xPX05AU1y1P2EYszOGwSAO+0MqDhd/j2XnRybVYjt5MWG 7aw2iJo2G1xt7GlLAEqjzNeqwbCSW29LgCQcBOoTUQUuawvcpKgpYqGNTSaNRCWXqDyC RfCIu89SIzFQxvGfhTJ7RXZpelTT3K1ITdis4= MIME-Version: 1.0 Received: by 10.103.242.1 with SMTP id u1mr3959550mur.113.1248790572123; Tue, 28 Jul 2009 07:16:12 -0700 (PDT) Date: Tue, 28 Jul 2009 17:16:12 +0300 Message-ID: <9e20d71e0907280716m3968f42pe7aeed2b0286302c@mail.gmail.com> From: Artis Caune To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: 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 14:36:23 -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=$1 if is_current_mountpoint ${_dir}; then - umount -f ${_dir} >/dev/null 2>&1 + umount ${_dir} >/dev/null 2>&1 || { sleep 2; umount ${_dir} >/dev/null 2>&1 || umount -f ${_dir} >/dev/null 2>&1; } else debug "Nothing mounted on ${_dir} - not unmounting" fi -- Artis Caune Everything should be made as simple as possible, but not simpler.