diff options
author | le <le@FreeBSD.org> | 2005-08-16 15:12:44 +0000 |
---|---|---|
committer | le <le@FreeBSD.org> | 2005-08-16 15:12:44 +0000 |
commit | cd8ed397a3428b047d5d519a91758cb2f3013282 (patch) | |
tree | 6434da34d0eba17ecda806cdc976203fc19ea90f /sys/geom/vinum/geom_vinum_plex.c | |
parent | 49cd513ac9eda3f986bed277a08d87eadc6ca6ba (diff) | |
download | FreeBSD-src-cd8ed397a3428b047d5d519a91758cb2f3013282.zip FreeBSD-src-cd8ed397a3428b047d5d519a91758cb2f3013282.tar.gz |
Make it possible to remove stale, left-over subdisks.
Diffstat (limited to 'sys/geom/vinum/geom_vinum_plex.c')
-rw-r--r-- | sys/geom/vinum/geom_vinum_plex.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/geom/vinum/geom_vinum_plex.c b/sys/geom/vinum/geom_vinum_plex.c index 9e77693..6f68dd9 100644 --- a/sys/geom/vinum/geom_vinum_plex.c +++ b/sys/geom/vinum/geom_vinum_plex.c @@ -727,7 +727,10 @@ gv_plex_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) /* Now find the correct plex where this subdisk belongs to. */ p = gv_find_plex(sc, s->plex); - KASSERT(p != NULL, ("gv_plex_taste: NULL p")); + if (p == NULL) { + printf("gv_plex_taste: NULL p for '%s'\n", s->name); + return (NULL); + } /* * Add this subdisk to this plex. Since we trust the on-disk |