Date: Mon, 4 Dec 2006 22:38:52 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/compat/linux linux_stats.c Message-ID: <200612042238.kB4Mcqph044499@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612042238.kB4Mcqph044499>
