summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2013-11-10 04:59:06 +0000
committerkrw <krw@openbsd.org>2013-11-10 04:59:06 +0000
commit5a57c229e95967fd1b1f5fe6da108ec146210d31 (patch)
treed9045f5bb11743aae724ea1066b598bca6df9eae
parentDon't use p_size as if it was the full partition size, and don't (diff)
downloadwireguard-openbsd-5a57c229e95967fd1b1f5fe6da108ec146210d31.tar.xz
wireguard-openbsd-5a57c229e95967fd1b1f5fe6da108ec146210d31.zip
Tweak comments to d_secperunit, p_size and p_offset to clearly say
they are the 'low' parts of the disk size, partition size and partition offset. Like d_secpuerunith, p_sizeh and p_offseth were already commented as the 'high' parts.
-rw-r--r--sys/sys/disklabel.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h
index c8bb3e8e659..94c6c5b8b7e 100644
--- a/sys/sys/disklabel.h
+++ b/sys/sys/disklabel.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.h,v 1.58 2013/11/03 14:18:55 deraadt Exp $ */
+/* $OpenBSD: disklabel.h,v 1.59 2013/11/10 04:59:06 krw Exp $ */
/* $NetBSD: disklabel.h,v 1.41 1996/05/10 23:07:37 mark Exp $ */
/*
@@ -106,7 +106,7 @@ struct disklabel {
u_int32_t d_ntracks; /* # of tracks per cylinder */
u_int32_t d_ncylinders; /* # of data cylinders per unit */
u_int32_t d_secpercyl; /* # of data sectors per cylinder */
- u_int32_t d_secperunit; /* # of data sectors per unit */
+ u_int32_t d_secperunit; /* # of data sectors (low part) */
u_char d_uid[8]; /* Unique label identifier. */
@@ -136,8 +136,8 @@ struct disklabel {
u_int32_t d_bbsize; /* size of boot area at sn0, bytes */
u_int32_t d_sbsize; /* max size of fs superblock, bytes */
struct partition { /* the partition table */
- u_int32_t p_size; /* number of sectors in partition */
- u_int32_t p_offset; /* starting sector */
+ u_int32_t p_size; /* number of sectors (low part) */
+ u_int32_t p_offset; /* starting sector (low part) */
u_int16_t p_offseth; /* starting sector (high part) */
u_int16_t p_sizeh; /* number of sectors (high part) */
u_int8_t p_fstype; /* filesystem type, see below */