aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mdioctl.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-01-01 23:08:26 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-01-01 23:08:26 +0000
commite06b153abe03c495a1b86cf366d01b54f9cec093 (patch)
treec59d0e2ac02dc9f80ff2157f1b1a327d40a2174a /sys/sys/mdioctl.h
parentb5073b49d9b1650c7da33e8b443f8f4b1e230a6a (diff)
downloadsrc-e06b153abe03c495a1b86cf366d01b54f9cec093.tar.gz
src-e06b153abe03c495a1b86cf366d01b54f9cec093.zip
Add padding space and a version number to the md_ioctl structre for future
extension. Add ability to create a preload disk giving an address and a length (suggested by imp) Fix bug relating to very small md(4) devices. Update md.c copyright to reflect the status of code copied from vn.c. (noticed by dillon)
Notes
Notes: svn path=/head/; revision=70573
Diffstat (limited to 'sys/sys/mdioctl.h')
-rw-r--r--sys/sys/mdioctl.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/sys/mdioctl.h b/sys/sys/mdioctl.h
index 6782e1a40bac..1507e6f2d714 100644
--- a/sys/sys/mdioctl.h
+++ b/sys/sys/mdioctl.h
@@ -54,13 +54,18 @@ enum md_types {MD_MALLOC, MD_PRELOAD, MD_VNODE, MD_SWAP};
*/
struct md_ioctl {
+ unsigned md_version; /* Structure layout version */
unsigned md_unit; /* unit number */
enum md_types md_type ; /* type of disk */
- char md_file[MAXPATHLEN + 1]; /* pathname of file to mount */
- unsigned md_size; /* (returned) size of disk */
+ char *md_file; /* pathname of file to mount */
+ unsigned md_size; /* size of disk in DEV_BSIZE units */
unsigned md_options; /* options */
+ u_int64_t md_base; /* base address */
+ int pad[100]; /* padding for future ideas */
};
+#define MDIOVERSION 1
+
/*
* Before you can use a unit, it must be configured with MDIOCSET.
* The configuration persists across opens and closes of the device;