diff options
author | phk <phk@FreeBSD.org> | 2002-12-29 14:56:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-12-29 14:56:04 +0000 |
commit | 590b9fdfdc9599c994f1e04d7304070dc530d107 (patch) | |
tree | 9693ea8ebdd989e186d9134c03f1434338ffecd8 | |
parent | 2eae537376d77fb65bf39a558e5f769a5dac8ca7 (diff) | |
download | FreeBSD-src-590b9fdfdc9599c994f1e04d7304070dc530d107.zip FreeBSD-src-590b9fdfdc9599c994f1e04d7304070dc530d107.tar.gz |
Add a couple of ioctls for modifying MBR's and the rest of sector0.
-rw-r--r-- | sys/sys/diskmbr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/diskmbr.h b/sys/sys/diskmbr.h index e10401d..653297c 100644 --- a/sys/sys/diskmbr.h +++ b/sys/sys/diskmbr.h @@ -37,6 +37,8 @@ #ifndef _SYS_DISKMBR_H_ #define _SYS_DISKMBR_H_ +#include <sys/ioccom.h> + #define DOSBBSECTOR 0 /* DOS boot block relative sector number */ #define DOSPARTOFF 446 #define NDOSPART 4 @@ -65,4 +67,8 @@ CTASSERT(sizeof (struct dos_partition) == 16); #define DPSECT(s) ((s) & 0x3f) /* isolate relevant bits of sector */ #define DPCYL(c, s) ((c) + (((s) & 0xc0)<<2)) /* and those that are cylinder */ +#define DIOCGMBR _IOR('M', 128, u_char[512]) +#define DIOCSMBR _IOW('M', 129, u_char[512]) + + #endif /* !_SYS_DISKMBR_H_ */ |