Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/resize_ffs Remove bogus check which is not actually tes...
details: https://anonhg.NetBSD.org/src/rev/0a07781bf909
branches: trunk
changeset: 759568:0a07781bf909
user: riz <riz%NetBSD.org@localhost>
date: Sun Dec 12 22:48:59 2010 +0000
description:
Remove bogus check which is not actually testing anything useful,
and depending on file system data, can actually be a false error.
Fixes what I was actually testing for in bin/44209, though the
actual problem was not what I originally described.
diffstat:
sbin/resize_ffs/resize_ffs.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diffs (19 lines):
diff -r aa32971eacea -r 0a07781bf909 sbin/resize_ffs/resize_ffs.c
--- a/sbin/resize_ffs/resize_ffs.c Sun Dec 12 22:34:44 2010 +0000
+++ b/sbin/resize_ffs/resize_ffs.c Sun Dec 12 22:48:59 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: resize_ffs.c,v 1.20 2010/12/12 19:53:23 mhitch Exp $ */
+/* $NetBSD: resize_ffs.c,v 1.21 2010/12/12 22:48:59 riz Exp $ */
/* From sources sent on February 17, 2003 */
/*-
* As its sole author, I explicitly place this code in the public
@@ -1940,9 +1940,6 @@
continue;
if (oldsb->fs_magic == FS_UFS1_MAGIC)
break;
- if (oldsb->fs_old_flags & FS_FLAGS_UPDATED)
- err(EXIT_FAILURE,
- "Can't resize ffsv2 format superblock!");
}
if (where == (off_t)-1)
errx(EXIT_FAILURE, "Bad magic number");
Home |
Main Index |
Thread Index |
Old Index