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/526c419d536b
branches:  trunk
changeset: 351763:526c419d536b
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 56fda3d8e289 -r 526c419d536b 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