Module Name: src
Committed By: riz
Date: Sun Dec 12 22:48:59 UTC 2010
Modified Files:
src/sbin/resize_ffs: resize_ffs.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sbin/resize_ffs/resize_ffs.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/resize_ffs/resize_ffs.c
diff -u src/sbin/resize_ffs/resize_ffs.c:1.20 src/sbin/resize_ffs/resize_ffs.c:1.21
--- src/sbin/resize_ffs/resize_ffs.c:1.20 Sun Dec 12 19:53:23 2010
+++ src/sbin/resize_ffs/resize_ffs.c Sun Dec 12 22:48:59 2010
@@ -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");