From 7c3a3fbe951ba9d6e13833751ec6b64b326445e6 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Sat, 10 Oct 2009 21:49:04 +0000 Subject: [PATCH] Orphaning provider with EXDEV seems weird; perhaps the author meant ENXIO here? --- sys/dev/fdc/fdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index a207bfcbc02..b2145cd0074 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -864,7 +864,7 @@ fdc_worker(struct fdc_data *fdc) fd->flags |= FD_NEWDISK; mtx_unlock(&fdc->fdc_mtx); g_topology_lock(); - g_orphan_provider(fd->fd_provider, EXDEV); + g_orphan_provider(fd->fd_provider, ENXIO); fd->fd_provider->flags |= G_PF_WITHER; fd->fd_provider = g_new_providerf(fd->fd_geom, fd->fd_geom->name);