diff options
author | Lukas Ertl <le@FreeBSD.org> | 2005-08-16 15:12:44 +0000 |
---|---|---|
committer | Lukas Ertl <le@FreeBSD.org> | 2005-08-16 15:12:44 +0000 |
commit | 664a97517f510c34f9f9e14e3f942865c0014042 (patch) | |
tree | 6434da34d0eba17ecda806cdc976203fc19ea90f /sys/geom/vinum/geom_vinum_plex.c | |
parent | c6fd52cbe78c712ae8a285a6cbe48e5a28dac8f6 (diff) |
Make it possible to remove stale, left-over subdisks.
Notes
Notes:
svn path=/head/; revision=149140
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 9e77693d702f..6f68dd9bfd22 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 |