summaryrefslogtreecommitdiff
path: root/sbin/growfs/growfs.c
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2005-12-19 15:18:03 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2005-12-19 15:18:03 +0000
commitfaad135a3485c1937647375bf90703d20730c9f8 (patch)
tree913df1cffab13edaa018e7552f9b531a9de9be37 /sbin/growfs/growfs.c
parent9ff59a5a926ca26a1fa600ebf739e3f4fd698ca2 (diff)
Add and use a few more constants and macros needed by UFS2
No functional change
Diffstat (limited to 'sbin/growfs/growfs.c')
-rw-r--r--sbin/growfs/growfs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index 73ac3549050..e0b0c863cfb 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: growfs.c,v 1.12 2005/04/14 19:58:32 deraadt Exp $ */
+/* $OpenBSD: growfs.c,v 1.13 2005/12/19 15:18:01 pedro Exp $ */
/*
* Copyright (c) 2000 Christoph Herrmann, Thomas-Henning von Kamptz
* Copyright (c) 1980, 1989, 1993 The Regents of the University of California.
@@ -46,7 +46,7 @@ static const char copyright[] =
Copyright (c) 1980, 1989, 1993 The Regents of the University of California.\n\
All rights reserved.\n";
-static const char rcsid[] = "$OpenBSD: growfs.c,v 1.12 2005/04/14 19:58:32 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: growfs.c,v 1.13 2005/12/19 15:18:01 pedro Exp $";
#endif /* not lint */
/* ********************************************************** INCLUDES ***** */
@@ -2243,7 +2243,8 @@ updrefs(int cg, ino_t in, struct gfs_bpp *bp, int fsi, int fso, unsigned int
DBG_LEAVE;
return; /* only check DIR, FILE, LINK */
}
- if (((ino->di_mode & IFMT) == IFLNK) && (ino->di_size < MAXSYMLINKLEN)) {
+ if (((ino->di_mode & IFMT) == IFLNK) &&
+ (ino->di_size < MAXSYMLINKLEN_UFS1)) {
DBG_LEAVE;
return; /* skip short symlinks */
}