summaryrefslogtreecommitdiffstats
path: root/sys/sys/diskmbr.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-04-04 09:36:15 +0000
committerphk <phk@FreeBSD.org>2002-04-04 09:36:15 +0000
commitbc9ecd683771ab5560a8bca5f8ebe019f97585f1 (patch)
treedfd0f9049cc32fbfce0d5d7309edd0b77cb0c3f7 /sys/sys/diskmbr.h
parenta22a153ace486b589df1dff9a735232e7db89844 (diff)
downloadFreeBSD-src-bc9ecd683771ab5560a8bca5f8ebe019f97585f1.zip
FreeBSD-src-bc9ecd683771ab5560a8bca5f8ebe019f97585f1.tar.gz
CTASSERT the size of struct dos_partition.
Diffstat (limited to 'sys/sys/diskmbr.h')
-rw-r--r--sys/sys/diskmbr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/diskmbr.h b/sys/sys/diskmbr.h
index 6e11218..d709eed 100644
--- a/sys/sys/diskmbr.h
+++ b/sys/sys/diskmbr.h
@@ -348,6 +348,9 @@ struct dos_partition {
u_int32_t dp_start; /* absolute starting sector number */
u_int32_t dp_size; /* partition size in sectors */
};
+#ifdef CTASSERT
+CTASSERT(sizeof (struct dos_partition) == 16);
+#endif
#endif
#define DPSECT(s) ((s) & 0x3f) /* isolate relevant bits of sector */
OpenPOWER on IntegriCloud