aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mdioctl.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-02-25 13:12:57 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-02-25 13:12:57 +0000
commit174b5e9aec22c10f68ac439a58d5d04bf9df144f (patch)
tree65af0854ab7e433a47691f0e124fc5ccf3ef17d5 /sys/sys/mdioctl.h
parenta4539b3e5695e35c1265dc19fd0061a5932ea289 (diff)
downloadsrc-174b5e9aec22c10f68ac439a58d5d04bf9df144f.tar.gz
src-174b5e9aec22c10f68ac439a58d5d04bf9df144f.zip
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>
Notes
Notes: svn path=/head/; revision=73026
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 1507e6f2d714..6ebda6b8dfaf 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 */