Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2025 08:53:55 +0000
From:      Poul-Henning Kamp <phk@phk.freebsd.dk>
To:        current@freebsd.org
Subject:   Removing USB stick returns EIO now, not ENXIO as 14.x
Message-ID:  <202509230853.58N8rtGo010961@critter.freebsd.dk>

index | next in thread | raw e-mail

On CURRENT and 15.0-ALPHA2, pulling a USB-stick out returns EIO instead of ENXIO

Easy way to test:

	# plug usb-stick in
	recoverdisk -v /dev/da0
	# pull usb-stick out

On 14.3 we, correctly, get ENXIO and recoverdisk(1) terminates.

On 16.0-CURRENT and 15.0-ALPHA2 we, wrongly, get EIO, despite
the "umass0: detached" message in /var/log/messages.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509230853.58N8rtGo010961>