diff options
author | pjd <pjd@FreeBSD.org> | 2004-12-27 17:20:06 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-12-27 17:20:06 +0000 |
commit | b19cea505cff9159f9680eb46daaf51d14fb3809 (patch) | |
tree | 55fe765c8368400583f00b5c70626fe1601950c0 /sys/sys/mdioctl.h | |
parent | c06a300010399909b6dab3e40803805da5975383 (diff) | |
download | FreeBSD-src-b19cea505cff9159f9680eb46daaf51d14fb3809.zip FreeBSD-src-b19cea505cff9159f9680eb46daaf51d14fb3809.tar.gz |
Rewrite piece of code which I committed some time ago that allows to
show file name for 'mdconfig -l -u <x>' command.
This allows to preserve API/ABI compatibility with version 0 (that's why
I changed version number back to 0) and will allow to merge this change
to RELENG_5.
MFC after: 5 days
Diffstat (limited to 'sys/sys/mdioctl.h')
-rw-r--r-- | sys/sys/mdioctl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/mdioctl.h b/sys/sys/mdioctl.h index afc0cb8..e45c096 100644 --- a/sys/sys/mdioctl.h +++ b/sys/sys/mdioctl.h @@ -54,20 +54,20 @@ 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; /* pathname of file to mount */ 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_fwheads; /* firmware heads */ int md_fwsectors; /* firmware sectors */ - char md_file[PATH_MAX]; /* pathname of file to mount */ int md_pad[MDNPAD]; /* padding for future ideas */ }; #define MD_NAME "md" #define MD_MODNAME "g_md" #define MDCTL_NAME "mdctl" -#define MDIOVERSION 1 +#define MDIOVERSION 0 /* * Before you can use a unit, it must be configured with MDIOCSET. |