Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev



>>> Michael van Elst <mlelstv%serpens.de@localhost> wrote

> On Fri, Nov 03, 2017 at 09:22:36AM +0900, Takeshi Nakayama wrote:
> > errno 5 is EIO.
> > 
> > This is why we check WDF_LOADED is not set and !RAW_PART or !S_IFCHR
> > in wdopen().  WDF_LOADED is set only in wd_fistopen(), so we cannot
> > open disks unless open with RAW_PART and S_IFCHR in the first time.
> > 
> > Possible fix is remove useless check as follows or introduce
> > WDF_OPEN if we want to mimic the sd(4).
> 
> Please try
> 
> http://ftp.netbsd.org/pub/NetBSD/misc/mlelstv/wd.diff
> 
> this is the "introduce WDF_OPEN" that is missing.

I just confirmed that works well.  Thank you for fixing.

-- Takehi Nakayama


Home | Main Index | Thread Index | Old Index