From owner-cvs-all@FreeBSD.ORG Mon Dec 4 22:45:47 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A955C16A4AB; Mon, 4 Dec 2006 22:45:47 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 854C343E08; Mon, 4 Dec 2006 22:38:17 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kB4McqoG044500; Mon, 4 Dec 2006 22:38:52 GMT (envelope-from jkim@repoman.freebsd.org) Received: (from jkim@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kB4Mcqph044499; Mon, 4 Dec 2006 22:38:52 GMT (envelope-from jkim) Message-Id: <200612042238.kB4Mcqph044499@repoman.freebsd.org> From: Jung-uk Kim Date: Mon, 4 Dec 2006 22:38:52 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/compat/linux linux_stats.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 04 Dec 2006 22:45:47 -0000 jkim 2006-12-04 22:38:52 UTC FreeBSD src repository Modified files: sys/compat/linux linux_stats.c Log: MFP4: 109652 Fixes for 'blocking in fifoor state' problem of LTP tests. linux_*stat*() functions were opening files with O_RDONLY to get major/minor pair for char/block special files. Unfortunately, when these functions are used against fifo, it is blocked forever because there is no writer. Instead, we only open char/block special files for major/minor conversion. We have to get rid of kern_open() entirely from translate_path_major_minor() but today is not the day. While I am here, add checks for errors before calling translate_path_major_minor(). Revision Changes Path 1.86 +38 -39 src/sys/compat/linux/linux_stats.c