Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_ffs when doing both -c 2 and -B, swap the blocks l...
details: https://anonhg.NetBSD.org/src/rev/2c968924e73d
branches: trunk
changeset: 557171:2c968924e73d
user: dbj <dbj%NetBSD.org@localhost>
date: Sat Jan 03 17:27:35 2004 +0000
description:
when doing both -c 2 and -B, swap the blocks listed in the inode
of symlinks, since the swapping happens before the symlinks
are moved into the inode.
diffstat:
sbin/fsck_ffs/inode.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 65c9555a069b -r 2c968924e73d sbin/fsck_ffs/inode.c
--- a/sbin/fsck_ffs/inode.c Sat Jan 03 16:37:41 2004 +0000
+++ b/sbin/fsck_ffs/inode.c Sat Jan 03 17:27:35 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inode.c,v 1.43 2004/01/03 10:25:06 dbj Exp $ */
+/* $NetBSD: inode.c,v 1.44 2004/01/03 17:27:35 dbj Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)inode.c 8.8 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: inode.c,v 1.43 2004/01/03 10:25:06 dbj Exp $");
+__RCSID("$NetBSD: inode.c,v 1.44 2004/01/03 17:27:35 dbj Exp $");
#endif
#endif /* not lint */
@@ -359,6 +359,7 @@
if (((iswap16(dp1->di_mode) & IFMT) != IFLNK) ||
(isappleufs && (iswap64(dp1->di_size) >
APPLEUFS_MAXSYMLINKLEN)) ||
+ doinglevel2 ||
(sblock->fs_maxsymlinklen < 0) ||
(iswap64(dp1->di_size) > sblock->fs_maxsymlinklen)) {
for (j = 0; j < (NDADDR + NIADDR); j++)
Home |
Main Index |
Thread Index |
Old Index