Module Name:    src
Committed By:   martin
Date:           Fri Apr 25 20:17:28 UTC 2014

Modified Files:
        src/sys/arch/arm/arm: disksubr.c

Log Message:
If we don't find any label, default partition a to full disk size
and type 4.2BSD (like most other architectures and everything using MBR
does).


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/arm/arm/disksubr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/arm/disksubr.c
diff -u src/sys/arch/arm/arm/disksubr.c:1.24 src/sys/arch/arm/arm/disksubr.c:1.25
--- src/sys/arch/arm/arm/disksubr.c:1.24	Sat Mar  9 16:02:25 2013
+++ src/sys/arch/arm/arm/disksubr.c	Fri Apr 25 20:17:28 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: disksubr.c,v 1.24 2013/03/09 16:02:25 christos Exp $	*/
+/*	$NetBSD: disksubr.c,v 1.25 2014/04/25 20:17:28 martin Exp $	*/
 
 /*
  * Copyright (c) 1998 Christopher G. Demetriou.  All rights reserved.
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.24 2013/03/09 16:02:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.25 2014/04/25 20:17:28 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -149,6 +149,12 @@ readdisklabel(dev_t dev, void (*strat)(s
 		lp->d_partitions[RAW_PART].p_offset = 0; 
 		lp->d_partitions[RAW_PART].p_size = 0x1fffffff;
 	}
+	/*
+	 * Set partition 'a' to be the whole disk.
+	 * Cleared if we find a netbsd label.
+	 */
+	lp->d_partitions[0].p_size = lp->d_partitions[RAW_PART].p_size;
+	lp->d_partitions[0].p_fstype = FS_BSDFFS;
 
 	/* obtain buffer to probe drive with */
     

Reply via email to