Date: Thu, 27 Mar 2003 17:50:11 -0800 (PST) From: Juli Mallett <jmallett@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libufs type.c Message-ID: <200303280150.h2S1oBq9033394@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jmallett 2003/03/27 17:50:11 PST
FreeBSD src repository
Modified files:
lib/libufs type.c
Log:
Close the disk file descriptor that is RO before trying to open the
new one, and do not fall back to the RO fd. There was a bug here
in that the RO fd was never closed, if the RDRW open succeeded, but
this code is bogus anyway, and it breaks newfs of floppies, at least
for me, due to "Device busy." Anything that wants to fall back is
doing something significantly odd that it should have some more complex
code on its end.
Revision Changes Path
1.13 +1 -4 src/lib/libufs/type.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303280150.h2S1oBq9033394>
