diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2008-06-12 00:19:16 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2008-06-12 00:19:16 +0000 |
commit | c2ced4ec3a978149165544ddd9a9c469e1d86dd0 (patch) | |
tree | 31f37978b222b45e1a729dcb7f46fe4b4767b712 /sys/dev/biovar.h | |
parent | db3961ce742ee00729295e07ff7a57cb0a2bb10c (diff) |
Add delete volume functionality.
discussed with krw, kettenis & drahn
ok hshoexer
Diffstat (limited to 'sys/dev/biovar.h')
-rw-r--r-- | sys/dev/biovar.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/biovar.h b/sys/dev/biovar.h index 4054cb90c1d..53158e83fb3 100644 --- a/sys/dev/biovar.h +++ b/sys/dev/biovar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: biovar.h,v 1.29 2008/06/10 23:44:59 marco Exp $ */ +/* $OpenBSD: biovar.h,v 1.30 2008/06/12 00:19:15 marco Exp $ */ /* * Copyright (c) 2002 Niklas Hallqvist. All rights reserved. @@ -188,6 +188,14 @@ struct bioc_createraid { void *bc_opaque; }; +#define BIOCDELETERAID _IOWR('B', 39, struct bioc_deleteraid) +struct bioc_deleteraid { + void *bd_cookie; + u_int32_t bd_flags; +#define BIOC_SDCLEARMETA 0x01 /* clear metadata region */ + char bd_dev[16]; /* device */ +}; + /* kernel and userspace defines */ #define BIOC_INQ 0x0001 #define BIOC_DISK 0x0002 @@ -196,6 +204,7 @@ struct bioc_createraid { #define BIOC_BLINK 0x0010 #define BIOC_SETSTATE 0x0020 #define BIOC_CREATERAID 0x0040 +#define BIOC_DELETERAID 0x0080 /* user space defines */ #define BIOC_DEVLIST 0x10000 |