Don't initialize error with ENXIO as we might end up here when

the plex has no more consumers (e.g. orphaning).
This commit is contained in:
le 2005-01-21 18:24:20 +00:00
parent 0ac71b801c
commit f7ba150b68

View File

@ -682,7 +682,6 @@ gv_plex_access(struct g_provider *pp, int dr, int dw, int de)
gp = pp->geom;
error = ENXIO;
LIST_FOREACH(cp, &gp->consumer, consumer) {
error = g_access(cp, dr, dw, de);
if (error) {
@ -694,7 +693,7 @@ gv_plex_access(struct g_provider *pp, int dr, int dw, int de)
return (error);
}
}
return (error);
return (0);
}
static struct g_geom *