From owner-freebsd-rc@FreeBSD.ORG Sun Nov 18 00:22:58 2012 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 84CC5D3B; Sun, 18 Nov 2012 00:22:58 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id A8C008FC14; Sun, 18 Nov 2012 00:22:57 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id u54so341249wey.13 for ; Sat, 17 Nov 2012 16:22:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=jo+mzHToO6OfcXFRM92rhmiiFygylG6H2tavYg3Oyfw=; b=BznFNQlESvGagZY+B7TLioF079c1emHkaXjVU9XXHrZLnKrF9G/wLYUKfzE0Xc7QCK JUi+C5id3PR1LlYAg45GdFgKyoyJKGl9aPTXGyhf4QpFojgZPG9AJp10hONcdc7v40dn hE3lnOWHx9zct3sJ0CLD7txsRtxdw+2LduE5hkWnCmMiJbM179BT/KoJvjkRxldWnZ9E QAcQOPUYppMPLDBXqJ2da1eUfRY/zPFKVOjaO126H9WNRplVL10N53gdWOy2wbcJjzYj +burq3TweVVh9jdsEK4YHio0DhYRlPNgdStRkEp0g0MxFOVJh8qqPvej5+OUSUdVUjC1 xXNw== Received: by 10.180.97.72 with SMTP id dy8mr3577615wib.6.1353198176179; Sat, 17 Nov 2012 16:22:56 -0800 (PST) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPS id gk9sm7159283wib.4.2012.11.17.16.22.54 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 17 Nov 2012 16:22:55 -0800 (PST) Date: Sun, 18 Nov 2012 01:22:45 +0100 From: Mateusz Guzik To: Hiroki Sato Subject: Re: mountlate being too mount-happy Message-ID: <20121118002245.GB15055@dft-labs.eu> References: <20121118.074325.564844639489846824.hrs@allbsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20121118.074325.564844639489846824.hrs@allbsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-rc@FreeBSD.org, mjg@FreeBSD.org, utisoft@gmail.com X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Nov 2012 00:22:58 -0000 On Sun, Nov 18, 2012 at 07:43:25AM +0900, Hiroki Sato wrote: > Chris Rees wrote > in : > > ut> On 2 November 2012 14:21, Eitan Adler wrote: > ut> > On 2 November 2012 09:56, Chris Rees wrote: > ut> >> I'll take a look. > ut> > > ut> > untested: > ut> > ut> Based on Eitan's patch, I've tested this one, and documented it in mount(8) too: > ut> > ut> http://www.bayofrum.net/~crees/patches/mountonlylate.diff > ut> > ut> Does anyone have any suggestions/objections/urge to approve it? > > Is the original problem due to backgrounding of NFS mount only? If > so, implementing prevention of duplicate invocation into mount(8) > would be more reasonable, I think. > We have 2 distinct scripts that try to mount same set of filesystems. I think this is the real bug here and proposed patches makes it go away in an IMHO acceptable way. -- Mateusz Guzik