geom_vinum_drive.c (135161) | geom_vinum_drive.c (135162) |
---|---|
1/*- 2 * Copyright (c) 2004 Lukas Ertl 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004 Lukas Ertl 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/geom/vinum/geom_vinum_drive.c 135161 2004-09-13 17:27:58Z le $"); | 28__FBSDID("$FreeBSD: head/sys/geom/vinum/geom_vinum_drive.c 135162 2004-09-13 17:33:52Z le $"); |
29 30#include <sys/param.h> 31#include <sys/bio.h> 32#include <sys/errno.h> 33#include <sys/conf.h> 34#include <sys/kernel.h> 35#include <sys/kthread.h> 36#include <sys/libkern.h> --- 276 unchanged lines hidden (view full) --- 313 d = gp->softc; 314 if (d != NULL) { 315 printf("gvinum: lost drive '%s'\n", d->name); 316 d->geom = NULL; 317 LIST_FOREACH(s, &d->subdisks, from_drive) { 318 s->provider = NULL; 319 s->consumer = NULL; 320 } | 29 30#include <sys/param.h> 31#include <sys/bio.h> 32#include <sys/errno.h> 33#include <sys/conf.h> 34#include <sys/kernel.h> 35#include <sys/kthread.h> 36#include <sys/libkern.h> --- 276 unchanged lines hidden (view full) --- 313 d = gp->softc; 314 if (d != NULL) { 315 printf("gvinum: lost drive '%s'\n", d->name); 316 d->geom = NULL; 317 LIST_FOREACH(s, &d->subdisks, from_drive) { 318 s->provider = NULL; 319 s->consumer = NULL; 320 } |
321 gv_set_drive_state(d, GV_DRIVE_DOWN, GV_SETSTATE_FORCE); | 321 gv_set_drive_state(d, GV_DRIVE_DOWN, 322 GV_SETSTATE_FORCE | GV_SETSTATE_CONFIG); |
322 } 323 gp->softc = NULL; 324 g_wither_geom(gp, error); 325} 326 327static struct g_geom * 328gv_drive_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) 329{ --- 201 unchanged lines hidden --- | 323 } 324 gp->softc = NULL; 325 g_wither_geom(gp, error); 326} 327 328static struct g_geom * 329gv_drive_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) 330{ --- 201 unchanged lines hidden --- |