>>> Michael van Elst <mlel...@serpens.de> 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