diff options
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r-- | sys/geom/geom_disk.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index 42c40bc..75d8fc4 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -419,6 +419,18 @@ disk_destroy(struct disk *dp) g_post_event(g_disk_destroy, dp, M_WAITOK, NULL); } +void +disk_gone(struct disk *dp) +{ + struct g_geom *gp; + struct g_provider *pp; + + gp = dp->d_geom; + if (gp != NULL) + LIST_FOREACH(pp, &gp->provider, provider) + g_orphan_provider(pp, ENXIO); +} + static void g_kern_disks(void *p, int flag __unused) { |