summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disklabel.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-07-13 15:53:20 +0000
committerBruce Evans <bde@FreeBSD.org>1997-07-13 15:53:20 +0000
commit7e88aafca74505ed5c11ad8f258dcfc4de2d3a3e (patch)
tree4e7e8de5bb0d7d00bb1a84a40683bfcfe74dab60 /sys/kern/subr_disklabel.c
parent0dd8d85b1c5467a938056894ad027c77791d594e (diff)
Notes
Diffstat (limited to 'sys/kern/subr_disklabel.c')
-rw-r--r--sys/kern/subr_disklabel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_disklabel.c b/sys/kern/subr_disklabel.c
index 94315de05b8f..abb14c75e14a 100644
--- a/sys/kern/subr_disklabel.c
+++ b/sys/kern/subr_disklabel.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ufs_disksubr.c 8.5 (Berkeley) 1/21/94
- * $Id$
+ * $Id: ufs_disksubr.c,v 1.30 1997/02/22 09:47:45 peter Exp $
*/
#include <sys/param.h>
@@ -160,7 +160,7 @@ insert:
* Attempt to read a disk label from a device using the indicated strategy
* routine. The label must be partly set up before this: secpercyl, secsize
* and anything required in the strategy routine (e.g., dummy bounds for the
- * partition containing the label) must be * filled in before calling us.
+ * partition containing the label) must be filled in before calling us.
* Returns NULL on success and an error string on failure.
*/
char *
@@ -184,7 +184,7 @@ readdisklabel(dev, strat, lp)
msg = "I/O error";
else for (dlp = (struct disklabel *)bp->b_data;
dlp <= (struct disklabel *)((char *)bp->b_data +
- DEV_BSIZE - sizeof(*dlp));
+ lp->d_secsize - sizeof(*dlp));
dlp = (struct disklabel *)((char *)dlp + sizeof(long))) {
if (dlp->d_magic != DISKMAGIC || dlp->d_magic2 != DISKMAGIC) {
if (msg == NULL)