Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dkwedge Allow dump to raidframe component which is a...
details: https://anonhg.NetBSD.org/src/rev/5598b55b18e0
branches: trunk
changeset: 342946:5598b55b18e0
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Fri Jan 15 07:48:22 2016 +0000
description:
Allow dump to raidframe component which is a wedge.
N.B. ordinary devices check the partition type only in the xxxsize routine.
diffstat:
sys/dev/dkwedge/dk.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 7928b861712d -r 5598b55b18e0 sys/dev/dkwedge/dk.c
--- a/sys/dev/dkwedge/dk.c Fri Jan 15 00:18:19 2016 +0000
+++ b/sys/dev/dkwedge/dk.c Fri Jan 15 07:48:22 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dk.c,v 1.87 2015/12/27 00:47:47 mlelstv Exp $ */
+/* $NetBSD: dk.c,v 1.88 2016/01/15 07:48:22 mlelstv Exp $ */
/*-
* Copyright (c) 2004, 2005, 2006, 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.87 2015/12/27 00:47:47 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dk.c,v 1.88 2016/01/15 07:48:22 mlelstv Exp $");
#ifdef _KERNEL_OPT
#include "opt_dkwedge.h"
@@ -1554,7 +1554,8 @@
/* Our content type is static, no need to open the device. */
- if (strcmp(sc->sc_ptype, DKW_PTYPE_SWAP) != 0) {
+ if (strcmp(sc->sc_ptype, DKW_PTYPE_SWAP) != 0 &&
+ strcmp(sc->sc_ptype, DKW_PTYPE_RAID) != 0) {
rv = ENXIO;
goto out;
}
Home |
Main Index |
Thread Index |
Old Index