Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Include "flash" in list of block devices that don't...
details: https://anonhg.NetBSD.org/src/rev/cb66af3bb6c9
branches: trunk
changeset: 357538:cb66af3bb6c9
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Nov 14 14:14:29 2017 +0000
description:
Include "flash" in list of block devices that don't use partitions.
diffstat:
sys/kern/kern_subr.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 3f998e791d7b -r cb66af3bb6c9 sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c Tue Nov 14 13:58:07 2017 +0000
+++ b/sys/kern/kern_subr.c Tue Nov 14 14:14:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_subr.c,v 1.218 2017/11/09 01:02:55 christos Exp $ */
+/* $NetBSD: kern_subr.c,v 1.219 2017/11/14 14:14:29 jmcneill Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2002, 2007, 2008 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.218 2017/11/09 01:02:55 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.219 2017/11/14 14:14:29 jmcneill Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@@ -163,12 +163,13 @@
char *bootspec;
/*
- * Use partition letters if it's a disk class but not a wedge.
- * XXX Check for wedge is kinda gross.
+ * Use partition letters if it's a disk class but not a wedge or flash.
+ * XXX Check for wedge/flash is kinda gross.
*/
#define DEV_USES_PARTITIONS(dv) \
(device_class((dv)) == DV_DISK && \
- !device_is_a((dv), "dk"))
+ !device_is_a((dv), "dk") && \
+ !device_is_a((dv), "flash"))
void
setroot(device_t bootdv, int bootpartition)
Home |
Main Index |
Thread Index |
Old Index