From owner-freebsd-rc@FreeBSD.ORG Mon Nov 7 00:13:12 2011 Return-Path: Delivered-To: freebsd-rc@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D321106566B; Mon, 7 Nov 2011 00:13:12 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) by mx1.freebsd.org (Postfix) with ESMTP id 72B398FC0C; Mon, 7 Nov 2011 00:13:12 +0000 (UTC) Received: from delta.delphij.net (unknown [IPv6:2001:470:83bf:0:221:5cff:fe6a:37bb]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 2C51914448; Sun, 6 Nov 2011 16:13:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1320624792; bh=Ktm/+kk0plEjCV3i4dLXr0svz8BEZmK9Vz5RanGSDJ0=; h=Message-ID:Date:From:Reply-To:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Wbljz4GytdcHBBCtWCi7PXALNDvWc5Bl9Jon8Iv0BhCr9LhhvFNWiMC6NbyWumJlu S6YV/OKbqg9EYND2ukTXxmQqrrNGuebneH+JsTDWTghWx4MzA3TSJrlvI2WbHEhG1z jAK3BvCxg8/mCpibxUYfsjGqXVoaq7lgXGYbKtfg= Message-ID: <4EB72290.8030104@delphij.net> Date: Sun, 06 Nov 2011 16:13:04 -0800 From: Xin LI Organization: The FreeBSD Project MIME-Version: 1.0 To: Doug Barton References: <4EB6693F.2020102@delphij.net> <4EB71580.20507@FreeBSD.org> In-Reply-To: <4EB71580.20507@FreeBSD.org> OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.ORG, d@delphij.net, Eygene Ryabinkin Subject: Re: Annoying ERROR: 'wlan0' is not a DHCP-enabled interface X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net 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: Mon, 07 Nov 2011 00:13:12 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 11/06/11 15:17, Doug Barton wrote: > On 11/06/2011 03:02, Xin LI wrote: >> Hi, >> >> It seems that 226879 have introduced an error indication where if >> an interface is up and is not set to DHCP, the devd invoked >> /etc/rc.d/dhclient wlan0 call would generate an annoying >> message. >> >> I think this message is not necessary at all -- normally >> /etc/rc.d/dhclient is used by the system and it's just legitimate >> that a network interface comes up and have not assigned as DHCP. >> >> I'd like to propose the attached change, which turns this message >> into debug message but keep the exit intact. >> >> Comments? > > What harm is the error message causing? It seems useful to me to > know if something is happening in the background that may need the > administrator's attention. It's harmful because it's not an error -- for example, a bge0 interface which is a member of lagg group, is usually marked explicitly as non-DHCP. On the other hand, can you give me an example where it *is* an error? :-) I can't seem to think about one but I could be wrong here. It sounds like to me a POLA violation by the way since it's not the way it was, but my argument is primarily about "this gives an error message for valid configuration" and not about POLA. Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iQEcBAEBCAAGBQJOtyKQAAoJEATO+BI/yjfBNksH/RavqeOnpVsVVhu/aGeotU5c c8qQ+PhsO8rXPPOdaET4XBHKkZNNHcX3/BaPe/zUDHDoCVT9S21RrT3SYzANC8J6 gWbi6xwXN2qFOaYEy0Uj0JO4zilMarpMgSW+67V+C3fwVX75yP9q6FOANRqORdlS HgSVepF+CAXOhva7T95CD7SA/S6PADw7xfnDoleHjjw/m/nH+O0AoW3/It7hMEPe tq1yj8MxiRv/WQJBg7zaEao9cEooJrKBoq7P8v/jmiuoYSw/XptwBsrvqyhSqgeq qDzyOMG3+XUd26lMnSbu9BF2vP+B4qq46+SNGFihv4YTb8bodJcm8OJOlQ25fgc= =0udw -----END PGP SIGNATURE-----