Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sun Disks without a disk label happen in normal oper...



details:   https://anonhg.NetBSD.org/src/rev/7e54edae5502
branches:  trunk
changeset: 822014:7e54edae5502
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Feb 26 09:49:40 2017 +0000

description:
Disks without a disk label happen in normal operation (both as USB
stick or with GPT), so do not cause an error message when opening
them.

diffstat:

 sys/dev/sun/disksubr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9d58aef63bc9 -r 7e54edae5502 sys/dev/sun/disksubr.c
--- a/sys/dev/sun/disksubr.c    Sun Feb 26 09:33:27 2017 +0000
+++ b/sys/dev/sun/disksubr.c    Sun Feb 26 09:49:40 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr.c,v 1.14 2010/03/23 20:01:09 martin Exp $ */
+/*     $NetBSD: disksubr.c,v 1.15 2017/02/26 09:49:40 martin Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -55,7 +55,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.14 2010/03/23 20:01:09 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.15 2017/02/26 09:49:40 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -160,7 +160,7 @@
        }
 
        memset(clp->cd_block, 0, sizeof(clp->cd_block));
-       return ("no disk label");
+       return NULL;
 }
 
 /*



Home | Main Index | Thread Index | Old Index