Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/hfs Don't spam if mount fails due to invalid file sys...



details:   https://anonhg.NetBSD.org/src/rev/3051263ba941
branches:  trunk
changeset: 749357:3051263ba941
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Nov 27 15:58:39 2009 +0000

description:
Don't spam if mount fails due to invalid file system.

diffstat:

 sys/fs/hfs/libhfs.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r fdcd3b7766a9 -r 3051263ba941 sys/fs/hfs/libhfs.c
--- a/sys/fs/hfs/libhfs.c       Fri Nov 27 15:37:32 2009 +0000
+++ b/sys/fs/hfs/libhfs.c       Fri Nov 27 15:58:39 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: libhfs.c,v 1.8 2009/07/14 21:12:18 apb Exp $   */
+/*     $NetBSD: libhfs.c,v 1.9 2009/11/27 15:58:39 pooka Exp $ */
 
 /*-
  * Copyright (c) 2005, 2007 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: libhfs.c,v 1.8 2009/07/14 21:12:18 apb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: libhfs.c,v 1.9 2009/11/27 15:58:39 pooka Exp $");
 
 #include "libhfs.h"
 
@@ -226,7 +226,9 @@
                        break;
                        
                default:
-                       HFS_LIBERR("unrecognized volume format");
+                       /* HFS_LIBERR("unrecognized volume format"); */
+                       goto error;
+                       break;
        }
 
 



Home | Main Index | Thread Index | Old Index