summaryrefslogtreecommitdiffstats
path: root/sys/geom/vinum/geom_vinum_var.h
diff options
context:
space:
mode:
authorle <le@FreeBSD.org>2005-08-15 17:07:47 +0000
committerle <le@FreeBSD.org>2005-08-15 17:07:47 +0000
commite3eb852545c7f5143756c06dd425a23c0638c08f (patch)
tree812ca879932f3713168f4e345bbff859600114b6 /sys/geom/vinum/geom_vinum_var.h
parent34de5b0fcf9a9858014aacce272e8c7f00b37b92 (diff)
downloadFreeBSD-src-e3eb852545c7f5143756c06dd425a23c0638c08f.zip
FreeBSD-src-e3eb852545c7f5143756c06dd425a23c0638c08f.tar.gz
Fix a stupid logic bug introduced in geom_vinum_drive.c rev 1.18:
When a drive is newly created, it's state is initially set to 'down', so it won't allow saving the config to it (thus it will never know of itself being created). Work around this by adding a new flag, that's also checked when saving the config to a drive.
Diffstat (limited to 'sys/geom/vinum/geom_vinum_var.h')
-rw-r--r--sys/geom/vinum/geom_vinum_var.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/vinum/geom_vinum_var.h b/sys/geom/vinum/geom_vinum_var.h
index 47da372..3de2b44 100644
--- a/sys/geom/vinum/geom_vinum_var.h
+++ b/sys/geom/vinum/geom_vinum_var.h
@@ -189,6 +189,7 @@ struct gv_drive {
#define GV_DRIVE_THREAD_ACTIVE 0x01 /* Drive has an active worker thread. */
#define GV_DRIVE_THREAD_DIE 0x02 /* Signal the worker thread to die. */
#define GV_DRIVE_THREAD_DEAD 0x04 /* The worker thread has died. */
+#define GV_DRIVE_NEWBORN 0x08 /* The drive was just created. */
struct gv_hdr *hdr; /* The drive header. */
OpenPOWER on IntegriCloud