summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2003-05-02 12:39:34 +0000
committersos <sos@FreeBSD.org>2003-05-02 12:39:34 +0000
commit9d68e427c54c8be6327f67456f42a477b1177dec (patch)
treef3d6e8d89a9672b991f9a5eda4f1607583cf5a5c
parent485a0c5f9ac79f60cb0f7956bc6ed5fb0be9c127 (diff)
downloadFreeBSD-src-9d68e427c54c8be6327f67456f42a477b1177dec.zip
FreeBSD-src-9d68e427c54c8be6327f67456f42a477b1177dec.tar.gz
Add function to add spare disk to raid.
-rw-r--r--sys/sys/ata.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/ata.h b/sys/sys/ata.h
index 7464d15..123676f 100644
--- a/sys/sys/ata.h
+++ b/sys/sys/ata.h
@@ -370,6 +370,7 @@ struct ata_cmd {
#define ATARAIDSTATUS 11
#define ATAENCSTAT 12
#define ATAGMAXCHANNEL 13
+#define ATARAIDADDSPARE 14
union {
struct {
@@ -391,6 +392,9 @@ struct ata_cmd {
int interleave;
int unit;
} raid_setup;
+ struct {
+ int disk;
+ } raid_spare;
struct raid_status {
int type;
int total_disks;
OpenPOWER on IntegriCloud