From owner-freebsd-current@FreeBSD.ORG Fri Feb 13 08:49:57 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AEE116A4CE for ; Fri, 13 Feb 2004 08:49:57 -0800 (PST) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ADCC43D1D for ; Fri, 13 Feb 2004 08:49:56 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11]) i1DGnoEE1261114 for ; Fri, 13 Feb 2004 17:49:52 +0100 Date: Fri, 13 Feb 2004 17:49:45 +0100 (CET) From: Lukas Ertl To: current@freebsd.org Message-ID: <20040213173919.F662@korben.in.tern> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: mailbox 4243; Body=0 Fuz1=0 Fuz2=0 Subject: DEVFS oddity X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.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: Fri, 13 Feb 2004 16:49:57 -0000 Hi, I've came across an oddity in devfs. The size of a symlink is the length of the "symbolic name", not the one of the target. Consider: $ ls -la /dev/ | grep ^l lrwxr-xr-x 1 root wheel 3 13 Feb 16:01 dvd@ -> acd0 lrwxr-xr-x 1 root wheel 4 13 Feb 17:01 kbd0@ -> atkbd0 lrwxr-xr-x 1 root wheel 3 13 Feb 16:01 log@ -> /var/run/log lrwxr-xr-x 1 root wheel 4 13 Feb 17:01 net1@ -> net/fxp0 lrwxr-xr-x 1 root wheel 4 13 Feb 17:01 net2@ -> net/lo0 lrwxr-xr-x 1 root wheel 4 13 Feb 16:02 net3@ -> net/ndis0 lrwxr-xr-x 1 root wheel 6 13 Feb 17:01 stderr@ -> fd/2 lrwxr-xr-x 1 root wheel 5 13 Feb 17:01 stdin@ -> fd/0 lrwxr-xr-x 1 root wheel 6 13 Feb 17:01 stdout@ -> fd/1 lrwxr-xr-x 1 root wheel 7 13 Feb 17:01 urandom@ -> random against: $ ls -l /sys lrwxr-xr-x 1 root wheel 11 13 Feb 12:12 /sys@ -> usr/src/sys Is this considered a bug or a feature? :-) regards, le -- Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/