From owner-cvs-src-old@FreeBSD.ORG Sun Jun 21 19:02:45 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 887E01065670 for ; Sun, 21 Jun 2009 19:02:45 +0000 (UTC) (envelope-from dchagin@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 754FB8FC08 for ; Sun, 21 Jun 2009 19:02:45 +0000 (UTC) (envelope-from dchagin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5LJ2jc1048463 for ; Sun, 21 Jun 2009 19:02:45 GMT (envelope-from dchagin@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5LJ2j2j048462 for cvs-src-old@freebsd.org; Sun, 21 Jun 2009 19:02:45 GMT (envelope-from dchagin@repoman.freebsd.org) Message-Id: <200906211902.n5LJ2j2j048462@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to dchagin@repoman.freebsd.org using -f From: Dmitry Chagin Date: Sun, 21 Jun 2009 19:02:32 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_6 Subject: cvs commit: src/sys/compat/linux linux_file.c linux_stats.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2009 19:02:45 -0000 dchagin 2009-06-21 19:02:32 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/compat/linux linux_file.c linux_stats.c Log: SVN rev 194599 on 2009-06-21 19:02:32Z by dchagin MFC r164890 (by jkim): 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(). MFC r179651: d_ino member of linux_dirent structure should be unsigned long. MFC r182892: Getdents requires padding with 2 bytes instead of 1 byte as with getdents64. The last byte is used for storing the d_type, add this to plain getdents case where it was missing before. Also change the code to use strlcpy instead of plain strcpy. MFC r188572: Fix an edge-case of the linux readdir: We need the size of a linux dirent structure, not the size of a pointer to it. PR: kern/113939 Approved by: kib (mentor) Revision Changes Path 1.91.2.7 +56 -35 src/sys/compat/linux/linux_file.c 1.72.2.9 +22 -26 src/sys/compat/linux/linux_stats.c