diff options
| author | Greg Lehey <grog@FreeBSD.org> | 1998-11-03 06:38:26 +0000 |
|---|---|---|
| committer | Greg Lehey <grog@FreeBSD.org> | 1998-11-03 06:38:26 +0000 |
| commit | 44043daefcbdf670a18cc4825489a617fdba077b (patch) | |
| tree | 58b0ee0d2f92c8e790a9c0e3444e296878060d2d /lkm | |
| parent | 8ef3d686c93b59f936ca9721c6dff87b4ebee603 (diff) | |
Notes
Diffstat (limited to 'lkm')
| -rw-r--r-- | lkm/vinum/io.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lkm/vinum/io.c b/lkm/vinum/io.c index 8feea853f010..e06d0ef89187 100644 --- a/lkm/vinum/io.c +++ b/lkm/vinum/io.c @@ -33,7 +33,7 @@ * otherwise) arising in any way out of the use of this software, even if * advised of the possibility of such damage. * - * $Id: io.c,v 1.19 1998/10/30 00:38:15 grog Exp grog $ + * $Id: io.c,v 1.18 1998/10/05 02:20:59 grog Exp grog $ */ #define STATIC /* nothing while we're testing XXX */ @@ -754,9 +754,15 @@ save_config(void) if ((drive->devicename[0] == '\0') /* XXX we keep getting these nameless drives */ ||(drive->label.name[0] == '\0')) { /* XXX we keep getting these nameless drives */ + printf("Removing incomplete drive, index %d\n", driveno); + if (drive->vp) /* how can it be open without a name? */ + close_drive(drive); free_drive(drive); /* get rid of it */ break; } + if ((drive->vp == NULL) /* drive not open */ + &&(drive->state > drive_down)) /* and it thinks it's not down */ + set_drive_state(driveno, drive_down, setstate_force | setstate_noupdate); /* tell it what's what */ if (drive->state != drive_down) { #if (__FreeBSD__ >= 3) getmicrotime(&drive->label.last_update); /* time of last update is now */ |
