diff options
author | marcel <marcel@FreeBSD.org> | 2006-04-10 03:55:13 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2006-04-10 03:55:13 +0000 |
commit | c168f9530e1b94a463b6747ea1f1bcb5b4ab8cbf (patch) | |
tree | 81cff68e80c2afb7c70386d60e4b5557ec440179 /sys/geom/geom_disk.c | |
parent | 271e02009f1ba97cb64faec0aef6565c45658e3e (diff) | |
download | FreeBSD-src-c168f9530e1b94a463b6747ea1f1bcb5b4ab8cbf.zip FreeBSD-src-c168f9530e1b94a463b6747ea1f1bcb5b4ab8cbf.tar.gz |
Add g_wither_provider() to abstract the details of destroying a
particular provider. Use this function where g_orphan_provider()
is being called so that the flags are updated correctly and
g_orphan_provider() is called only when allowed.
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r-- | sys/geom/geom_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index 75d8fc4..6115106 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -428,7 +428,7 @@ disk_gone(struct disk *dp) gp = dp->d_geom; if (gp != NULL) LIST_FOREACH(pp, &gp->provider, provider) - g_orphan_provider(pp, ENXIO); + g_wither_provider(pp, ENXIO); } static void |