From owner-freebsd-arch@FreeBSD.ORG Mon Apr 7 21:40:28 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C350D1065672 for ; Mon, 7 Apr 2008 21:40:28 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id 6B60D8FC1A for ; Mon, 7 Apr 2008 21:40:28 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so426508anc.13 for ; Mon, 07 Apr 2008 14:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=KS/1NYIfAl1v9sWfw+JAORehKe/uuh86Kw7Aitq+GF4=; b=nJxpaSu3EPJ0+65wIOdESjzgOGJlbhfW/8lyI9iAdSpwUTleEzxIdqRe9pdoOBwGRllXWwDxPYN/jCYnCgbRyUf8UH3ksvsqlVcHDzNNxhwX3sW+OS6LNxHmRaDCX+9SMXEaUl5KsjnusO6EdPXW5bqXXYwEBQIuE2jUVYStFkk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ppa9Qhm67JfHStfd12+YkAXWCpvg8zhjrTS8kobm3SmrL0rqBZNNqa2weUu7T5GrmOqHq9kVScnvXJJ+GHpGMBRmlNnsdJF2VNeMQRf05UcpHuPz3eFYG2pqmz02KYoIIRmEYIpWfDsfGLgdAriElU40pJDkkHhHRqZFKAUR4nk= Received: by 10.100.110.16 with SMTP id i16mr11316097anc.40.1207604427645; Mon, 07 Apr 2008 14:40:27 -0700 (PDT) Received: by 10.100.227.7 with HTTP; Mon, 7 Apr 2008 14:40:27 -0700 (PDT) Message-ID: <9a542da30804071440i1d7b0c6cwbdc44625b94fb90e@mail.gmail.com> Date: Mon, 7 Apr 2008 23:40:27 +0200 From: "=?ISO-8859-1?Q?Ermal_Lu=E7i?=" To: "Brooks Davis" In-Reply-To: <20080407202527.GG28511@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9a542da30804071201o520812f8w4fc413131c4140b0@mail.gmail.com> <20080407202527.GG28511@lor.one-eyed-alien.net> Cc: freebsd-arch@freebsd.org Subject: Re: Question about network interface naming and devfs(5)! X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Apr 2008 21:40:28 -0000 On Mon, Apr 7, 2008 at 10:25 PM, Brooks Davis wrote: > > On Mon, Apr 07, 2008 at 09:01:18PM +0200, Ermal Lu?i wrote: > > Hello, > > > > it seems that devfs(5) is not consistent with network interface naming feature. > > > > Network interface naming is offered by ifconfig $interface name $name. > > This feature is really helpful to distinguish interfaces properly in a > > machine and helps in scripting things. > > The problem is that the ioctl that renames the device advertises it as > > an interface arrival event which devfs does not handle and such you > > have inconsistence between ifconfig output and the information in > > devfs. > > > > Are there any plans to fix this or is there any issue for not making > > devfs(5) aware of network interfaces events?! > > I haven't dealt with it because a) there's no way to rename entries > which currently means you've have to destroy the current entry and add > a completely new one which would break applications using the devfs > entries across renames and b) I think the devfs entries are a mistake and > should die. Can't it be made to behave like a real file system?! Meaning to have reference count for its devices/entries so the entry/descriptor is kept open till the last close() is performed! Ermal > > -- Brooks >