aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/mdioctl.h
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2004-09-16 21:32:13 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2004-09-16 21:32:13 +0000
commitb830359bc58e3733d84002a4e2c438c378ff5b30 (patch)
treec8eed432da84045183ce12e190d7155be6324b88 /sys/sys/mdioctl.h
parentfdbe44b0cda0f2b6909099d898a99aa84079d569 (diff)
downloadsrc-b830359bc58e3733d84002a4e2c438c378ff5b30.tar.gz
src-b830359bc58e3733d84002a4e2c438c378ff5b30.zip
- Make md(4) 64-bit clean.
After this change it should be possible to use very big md(4) devices. - Clean up and simplify the code a bit. - Use humanize_number(3) to print size of md(4) devices. - Add 't' suffix which stands for terabyte. - Make '-S' to really work with all types of devices. - Other minor changes.
Notes
Notes: svn path=/head/; revision=135340
Diffstat (limited to 'sys/sys/mdioctl.h')
-rw-r--r--sys/sys/mdioctl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/mdioctl.h b/sys/sys/mdioctl.h
index 4243f49e18ea..e45c096085ea 100644
--- a/sys/sys/mdioctl.h
+++ b/sys/sys/mdioctl.h
@@ -55,10 +55,10 @@ struct md_ioctl {
unsigned md_unit; /* unit number */
enum md_types md_type ; /* type of disk */
char *md_file; /* pathname of file to mount */
- unsigned md_size; /* size of disk in DEV_BSIZE units */
+ off_t md_mediasize; /* size of disk in bytes */
+ unsigned md_sectorsize; /* sectorsize */
unsigned md_options; /* options */
u_int64_t md_base; /* base address */
- int md_secsize; /* sectorsize */
int md_fwheads; /* firmware heads */
int md_fwsectors; /* firmware sectors */
int md_pad[MDNPAD]; /* padding for future ideas */