Module Name: src
Committed By: uch
Date: Tue Aug 9 11:18:29 UTC 2011
Modified Files:
src/sbin/newfs_v7fs: main.c
Log Message:
Fix warning message.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sbin/newfs_v7fs/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/newfs_v7fs/main.c
diff -u src/sbin/newfs_v7fs/main.c:1.8 src/sbin/newfs_v7fs/main.c:1.9
--- src/sbin/newfs_v7fs/main.c:1.8 Tue Aug 9 09:12:07 2011
+++ src/sbin/newfs_v7fs/main.c Tue Aug 9 11:18:28 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.8 2011/08/09 09:12:07 uch Exp $ */
+/* $NetBSD: main.c,v 1.9 2011/08/09 11:18:28 uch Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.8 2011/08/09 09:12:07 uch Exp $");
+__RCSID("$NetBSD: main.c,v 1.9 2011/08/09 11:18:28 uch Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -78,7 +78,10 @@
int error;
if ((error = v7fs_superblock_load(fs))) {
- warnx("Can't read superblock sector.");
+ if (error != EINVAL) {
+ /* Invalid superblock information is OK. */
+ warnx("Can't read superblock sector.");
+ }
}
sb->modified = 1;
if ((error = v7fs_superblock_writeback(fs))) {