diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2007-05-23 21:27:14 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2007-05-23 21:27:14 +0000 |
commit | f293f85cb955f7ca9fefb4b8dff0343fadfc2ff7 (patch) | |
tree | 639b925f0339cef3dd755cc9a0a397ee0610bb51 /sys/dev/biovar.h | |
parent | 0d1a99c25d7246726c9a1255df1a2b277fee579c (diff) |
Remove all vnode dependencies so that we can bootstrap softraid volumes.
Code from tedu.
Replace all kernel string magic with dev_t passed in from bioctl.
Suggestion from beck and tedu. Help from miod.
Fix chunk crc.
ok tedu
Diffstat (limited to 'sys/dev/biovar.h')
-rw-r--r-- | sys/dev/biovar.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/biovar.h b/sys/dev/biovar.h index 5bdc4d7cf86..d300578cb7a 100644 --- a/sys/dev/biovar.h +++ b/sys/dev/biovar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: biovar.h,v 1.26 2007/03/19 03:02:08 marco Exp $ */ +/* $OpenBSD: biovar.h,v 1.27 2007/05/23 21:27:13 marco Exp $ */ /* * Copyright (c) 2002 Niklas Hallqvist. All rights reserved. @@ -172,9 +172,13 @@ struct bioc_setstate { #define BIOCCREATERAID _IOWR('B', 38, struct bioc_createraid) struct bioc_createraid { void *bc_cookie; - char *bc_dev_list; + void *bc_dev_list; u_int16_t bc_dev_list_len; +#define BIOC_CRMAXLEN 1024 u_int16_t bc_level; + u_int32_t bc_flags; +#define BIOC_SCFORCE 0x01 /* do not assemble, force create */ +#define BIOC_SCDEVT 0x02 /* dev_t array or string in dev_list */ }; /* kernel and userspace defines */ |