From owner-cvs-all@FreeBSD.ORG Tue Feb 22 13:39:47 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1ED9D16A4CE; Tue, 22 Feb 2005 13:39:47 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A21E43D1F; Tue, 22 Feb 2005 13:39:47 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1MDdkuL041142; Tue, 22 Feb 2005 13:39:46 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1MDdkBh041141; Tue, 22 Feb 2005 13:39:46 GMT (envelope-from phk) Message-Id: <200502221339.j1MDdkBh041141@repoman.freebsd.org> From: Poul-Henning Kamp Date: Tue, 22 Feb 2005 13:39:46 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/linux linux_stats.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 13:39:47 -0000 phk 2005-02-22 13:39:46 UTC FreeBSD src repository Modified files: sys/compat/linux linux_stats.c Log: Neuter linux_ustat() until somebody finds time to try to fix it. The fundamental problem is that we get only the lower 8 bits of the minor device number so there is no guarantee that we can actually find the disk device in question at all. This was probably a bigger issue pre-GEOM where the upper bits signaled which slice were in use. The secondary problem is how we get from (partial) dev_t to vnode. The correct implementation will involve traversing the mount list looking for a perfect match or a possible match (for truncated minor). Revision Changes Path 1.66 +9 -4 src/sys/compat/linux/linux_stats.c