From owner-freebsd-current@freebsd.org Fri Apr 22 08:41:15 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8508CB1796A for ; Fri, 22 Apr 2016 08:41:15 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2943013BE; Fri, 22 Apr 2016 08:41:15 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by mail-wm0-x244.google.com with SMTP id e201so2359855wme.2; Fri, 22 Apr 2016 01:41:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=9POzQtFUMM0+r6uRexiZeQSjtzFbTrOOgC5yvzfMxX0=; b=MoSnYQxZEy05zj2+ma3UHHF82d4hfSjCKfpZRbeqODIJHMLWZZDMSVqProPeEpdFyd hbPRJWfSxiOOZeS9Ozo7OaiESEarCv4NYtinJ4NEXhQg85tyEZdJNln3XB06LsnttDiG LsfAAbBaX1SPV/YeGKYzUAos74nJmua6DmNwXsbg1lth7WSTNPIoqx//zfLPu+2Eyex+ dForNnIw8oI5GTXGv40L5koYz56qa6lTjEfKZV+zXXqSb7eElwzzp42O687bXv169Ly/ 10fPapKFX+/VECtuX4ekoAtr2Wqb6ACgq5YYXC1tWi8XM3FXYFmchF+Vd/yvFgUprqcp LcRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=9POzQtFUMM0+r6uRexiZeQSjtzFbTrOOgC5yvzfMxX0=; b=StC3FLXNwAGAeltPrP+cx3NPvG+pZn58ZDg4n/UchmB8f47Qsp1HBKGbT6GHCmjDwS 1v9YFq6Hp8tZG2kIlewv3tQgQj16eCJ37N+xJgHKaA/iunWQ0tGPgwIsMq5nPKh2grpQ J7J5cxJIS+HSkzu1LJZ42oLHUDtmDbLLFr3jY2wQZWopQF+/u3xYbv8u7IRbSTjI9YU6 xUnfOfy+aMsKusA4PDCK5BLI2xF3IV1bo01Iy6SFKTNNP1QSTH1DIPmTiQKMHG+ZUu4V +dKZtavoLt6tnBMuaufhH26zNCJLG/FBTvY2n0xVFHDOitxwCGSEyODbbyqnScwSGg1B Jhaw== X-Gm-Message-State: AOPr4FUm1mm1/KQqmABb00TDZVXQG8/zWgpa11xZ0KIx9cg/L65BliKGpQKNafhvX5/P2w== X-Received: by 10.194.116.9 with SMTP id js9mr22012643wjb.112.1461314473853; Fri, 22 Apr 2016 01:41:13 -0700 (PDT) Received: from brick (esr141.neoplus.adsl.tpnet.pl. [83.20.137.141]) by smtp.gmail.com with ESMTPSA id i194sm2192582wmf.6.2016.04.22.01.41.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Apr 2016 01:41:13 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Fri, 22 Apr 2016 10:41:09 +0200 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: David Chisnall Cc: Dan Partelly , freebsd-current Subject: Re: [CFT] packaging the base system with pkg(8) Message-ID: <20160422084109.GB1479@brick> Mail-Followup-To: David Chisnall , Dan Partelly , freebsd-current References: <5716AD65.8070007@shrew.net> <5716FA70.4080604@freebsd.org> <571765BB.3050908@quip.cz> <79117ce18bd3332c7df3e55e12a161b4@rdsor.ro> <20160421095706.GA57206@brick> <30F6CCDE-E099-49EF-9A1A-68F147FBF50B@rdsor.ro> <20160421202023.GB33506@brick> <7F12F680-080B-4DB3-81A5-CC5282B78034@rdsor.ro> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 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: Fri, 22 Apr 2016 08:41:15 -0000 On 0422T0908, David Chisnall wrote: > On 21 Apr 2016, at 21:48, Dan Partelly wrote: > > > > Yes, you are right it misses the media change handler in devd.conf. > > maybe it should bementioned somewhere in a man page if it is not > > already there. Thanks for the pointer. > > > > Anyway, if I would have written the system, what I would have done > > is to consolidate both user mode daemons into one and make this > > daemon a client of devd, fstyp a library, and handle all removable > > media inside transparent to the user, without requiring any modifications > > to devd.conf, and without relaying on shell scripts. > > > > Is there any reason you did not took this approach ? This is not > > criticism, I am genuinely interested. > > One of the current shortcomings of devd is that it does not provide a good mechanism for other running processes to request notification of events dynamically. Ideally, when the automounter daemon starts, it should connect to devd via an IPC channel and request notification of the specific events that it wants. This is a known problem (which extends to more than just the automounter) and there are some tentative plans to fix it, but they’re not yet concrete and won’t be in 11.0, though hopefully will appear at some point in the 11.x series. Well, even if we went this route, this wouldn't quite work, because the automountd daemon actually doesn't need those notifications. It's the "-media" map that does. Other parts of autofs don't have any special code for media handling.