summaryrefslogtreecommitdiffstats
path: root/sys/sys/mdioctl.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2001-02-25 13:12:57 +0000
committerphk <phk@FreeBSD.org>2001-02-25 13:12:57 +0000
commitf547e06fc7704325a983ab3cd65e7dca8c2ff5fc (patch)
treeceb0b50f91d4a329a6a280591e66651dfb0f828b /sys/sys/mdioctl.h
parent292085c2c12f53507fafb6423983ac0153495991 (diff)
downloadFreeBSD-src-f547e06fc7704325a983ab3cd65e7dca8c2ff5fc.zip
FreeBSD-src-f547e06fc7704325a983ab3cd65e7dca8c2ff5fc.tar.gz
Make "md" and "mdctl" macroized parameters.
Implement "-l" option to mdconfig which can list one or all md devices. Submitted by: Dima Dorfman <dima@unixfreak.org>
Diffstat (limited to 'sys/sys/mdioctl.h')
-rw-r--r--sys/sys/mdioctl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/mdioctl.h b/sys/sys/mdioctl.h
index 1507e6f..6ebda6b 100644
--- a/sys/sys/mdioctl.h
+++ b/sys/sys/mdioctl.h
@@ -64,6 +64,8 @@ struct md_ioctl {
int pad[100]; /* padding for future ideas */
};
+#define MD_NAME "md"
+#define MDCTL_NAME "mdctl"
#define MDIOVERSION 1
/*
@@ -75,6 +77,7 @@ struct md_ioctl {
#define MDIOCATTACH _IOWR('m', 0, struct md_ioctl) /* attach disk */
#define MDIOCDETACH _IOWR('m', 1, struct md_ioctl) /* detach disk */
+#define MDIOCQUERY _IOWR('m', 2, struct md_ioctl) /* query status */
#define MD_CLUSTER 0x01 /* Don't cluster */
#define MD_RESERVE 0x02 /* Pre-reserve swap */
OpenPOWER on IntegriCloud