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.
This commit is contained in:
parent
300943f949
commit
1f5f1d50af
|
@ -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 @@ swap_dinode1(union dinode *dp, int n)
|
|||
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++)
|
||||
|
|
Loading…
Reference in New Issue