From owner-svn-src-head@FreeBSD.ORG Sun May 12 15:44:50 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 487D0D8; Sun, 12 May 2013 15:44:50 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 392BDA6; Sun, 12 May 2013 15:44:50 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4CFioFV062699; Sun, 12 May 2013 15:44:50 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4CFioFG062698; Sun, 12 May 2013 15:44:50 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201305121544.r4CFioFG062698@svn.freebsd.org> From: Jilles Tjoelker Date: Sun, 12 May 2013 15:44:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250567 - head/sys/fs/fdescfs X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 May 2013 15:44:50 -0000 Author: jilles Date: Sun May 12 15:44:49 2013 New Revision: 250567 URL: http://svnweb.freebsd.org/changeset/base/250567 Log: fdescfs: Supply a real value for d_type in readdir. All the fdescfs nodes (except . and ..) appear as character devices to stat(), so DT_CHR is correct. Modified: head/sys/fs/fdescfs/fdesc_vnops.c Modified: head/sys/fs/fdescfs/fdesc_vnops.c ============================================================================== --- head/sys/fs/fdescfs/fdesc_vnops.c Sun May 12 15:29:35 2013 (r250566) +++ head/sys/fs/fdescfs/fdesc_vnops.c Sun May 12 15:44:49 2013 (r250567) @@ -538,7 +538,7 @@ fdesc_readdir(ap) break; dp->d_namlen = sprintf(dp->d_name, "%d", fcnt); dp->d_reclen = UIO_MX; - dp->d_type = DT_UNKNOWN; + dp->d_type = DT_CHR; dp->d_fileno = i + FD_DESC; break; }