From owner-freebsd-current@FreeBSD.ORG Mon Sep 8 07:37:09 2014 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5CF4FA11; Mon, 8 Sep 2014 07:37:09 +0000 (UTC) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 20D32125C; Mon, 8 Sep 2014 07:37:09 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [94.19.235.70]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPSA id A0DE556403; Mon, 8 Sep 2014 11:37:07 +0400 (MSK) Date: Mon, 8 Sep 2014 11:37:04 +0400 From: Lev Serebryakov Reply-To: lev@FreeBSD.org Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <764889423.20140908113704@serebryakov.spb.ru> To: =?utf-8?Q?Edward_Tomasz_Napiera=C5=82a?= Subject: Re: [CFT] Autofs. In-Reply-To: <20140904124330.GB4152@pc5.home> References: <20140730071933.GA20122@pc5.home> <53F0878E.3000401@beastielabs.net> <20140817145059.GA5497@pc5.home> <5407FFB0.80203@beastielabs.net> <20140904124330.GB4152@pc5.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@FreeBSD.org, Hans Ottevanger , freebsd-arch@FreeBSD.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2014 07:37:09 -0000 Hello, Edward. You wrote 4 =D1=81=D0=B5=D0=BD=D1=82=D1=8F=D0=B1=D1=80=D1=8F 2014 =D0=B3., = 16:43:30: ETN> It's a bug. Or rather, a missing feature. The problem here is that ETN> the "/" export "shadows" the rest. To handle this correctly, automoun= td(8) ETN> would need to mount the "/" share, then mount autofs on "/usr" etc, and ETN> then call it done. This part is easy. The problem is: how to expire ETN> (automatically unmount) it? Because of autofs mounts, the "/" share ETN> will always be busy, and thus won't ever get automatically unmounted. ETN> So, for now, we don't even try to handle this situation. I have same problem with /usr + /usr/home, which make autofs pretty useless for me :( Looks like, "autofs" mounts should not be considered "busy" for other automounted filesystems and should be processed separately... --=20 // Black Lion AKA Lev Serebryakov