FreeBSD/sys/geom/virstor/g_virstor.c
/*
 * Called when the consumer gets orphaned (?)
 */
Called when the consumer gets orphaned (?)
Called when the consumer gets orphaned ( ? )
static void
g_virstor_orphan(struct g_consumer *cp)
{
	struct g_virstor_softc *sc;
	struct g_virstor_component *comp;
	struct g_geom *gp;
	g_topology_assert();
	gp = cp->geom;
	sc = gp->softc;
	if (sc == NULL)
		return;
	comp = cp->private;
	KASSERT(comp != NULL, ("%s: No component in private part of consumer",
	    __func__));
	remove_component(sc, comp, FALSE);
	if (virstor_valid_components(sc) == 0)
		virstor_geom_destroy(sc, TRUE, FALSE);
}
static void g_virstor_orphan ( struct g_consumer * cp ) { struct g_virstor_softc * sc ; struct g_virstor_component * comp ; struct g_geom * gp ; g_topology_assert ( ) ; gp = cp -> geom ; sc = gp -> softc ; if ( sc == NULL ) return ; comp = cp -> private ; KASSERT ( comp != NULL , ( " " , __func__ ) ) ; remove_component ( sc , comp , FALSE ) ; if ( virstor_valid_components ( sc ) == 0 ) virstor_geom_destroy ( sc , TRUE , FALSE ) ; }
Called when the consumer gets orphaned (?)
Called when the consumer gets orphaned ( ? )