diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-12-19 15:18:03 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-12-19 15:18:03 +0000 |
commit | faad135a3485c1937647375bf90703d20730c9f8 (patch) | |
tree | 913df1cffab13edaa018e7552f9b531a9de9be37 /sbin/fsck_ffs/setup.c | |
parent | 9ff59a5a926ca26a1fa600ebf739e3f4fd698ca2 (diff) |
Add and use a few more constants and macros needed by UFS2
No functional change
Diffstat (limited to 'sbin/fsck_ffs/setup.c')
-rw-r--r-- | sbin/fsck_ffs/setup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c index 7857a591299..2c6e0a75952 100644 --- a/sbin/fsck_ffs/setup.c +++ b/sbin/fsck_ffs/setup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setup.c,v 1.21 2003/09/25 04:19:39 deraadt Exp $ */ +/* $OpenBSD: setup.c,v 1.22 2005/12/19 15:18:01 pedro Exp $ */ /* $NetBSD: setup.c,v 1.27 1996/09/27 22:45:19 christos Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)setup.c 8.5 (Berkeley) 11/23/94"; #else -static const char rcsid[] = "$OpenBSD: setup.c,v 1.21 2003/09/25 04:19:39 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: setup.c,v 1.22 2005/12/19 15:18:01 pedro Exp $"; #endif #endif /* not lint */ @@ -241,10 +241,10 @@ setup(char *dev) dirty(&asblk); } } - if (sblock.fs_maxsymlinklen != MAXSYMLINKLEN) { + if (sblock.fs_maxsymlinklen != MAXSYMLINKLEN_UFS1) { pwarn("INCORRECT MAXSYMLINKLEN=%d IN SUPERBLOCK", sblock.fs_maxsymlinklen); - sblock.fs_maxsymlinklen = MAXSYMLINKLEN; + sblock.fs_maxsymlinklen = MAXSYMLINKLEN_UFS1; if (preen) printf(" (FIXED)\n"); if (preen || reply("FIX") == 1) { @@ -291,7 +291,7 @@ setup(char *dev) doinglevel2++; sblock.fs_inodefmt = FS_44INODEFMT; sblock.fs_maxfilesize = maxfilesize; - sblock.fs_maxsymlinklen = MAXSYMLINKLEN; + sblock.fs_maxsymlinklen = MAXSYMLINKLEN_UFS1; sblock.fs_qbmask = ~sblock.fs_bmask; sblock.fs_qfmask = ~sblock.fs_fmask; sbdirty(); |