Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm If we don't find any label, default partiti...
details: https://anonhg.NetBSD.org/src/rev/4bf5a5250c56
branches: trunk
changeset: 328962:4bf5a5250c56
user: martin <martin%NetBSD.org@localhost>
date: Fri Apr 25 20:17:28 2014 +0000
description:
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).
diffstat:
sys/arch/arm/arm/disksubr.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r 857d3cdd7be5 -r 4bf5a5250c56 sys/arch/arm/arm/disksubr.c
--- a/sys/arch/arm/arm/disksubr.c Fri Apr 25 19:56:01 2014 +0000
+++ b/sys/arch/arm/arm/disksubr.c Fri Apr 25 20:17:28 2014 +0000
@@ -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 @@
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 */
Home |
Main Index |
Thread Index |
Old Index