Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-10]: src/sbin/fsck_ffs Pull up following revision(s) (requested b...
details: https://anonhg.NetBSD.org/src/rev/8983e1db2e3e
branches: netbsd-10
changeset: 374811:8983e1db2e3e
user: martin <martin%NetBSD.org@localhost>
date: Sat May 13 12:13:54 2023 +0000
description:
Pull up following revision(s) (requested by chs in ticket #162):
sbin/fsck_ffs/inode.c: revision 1.74
sbin/fsck_ffs/utilities.c: revision 1.68
sbin/fsck_ffs/fsck.h: revision 1.57
sbin/fsck_ffs/pass4.c: revision 1.30
catch up with sign changes in the fs.h
diffstat:
sbin/fsck_ffs/fsck.h | 4 ++--
sbin/fsck_ffs/inode.c | 10 +++++-----
sbin/fsck_ffs/pass4.c | 7 ++++---
sbin/fsck_ffs/utilities.c | 6 +++---
4 files changed, 14 insertions(+), 13 deletions(-)
diffs (106 lines):
diff -r cf10ae387c97 -r 8983e1db2e3e sbin/fsck_ffs/fsck.h
--- a/sbin/fsck_ffs/fsck.h Sat May 13 11:54:17 2023 +0000
+++ b/sbin/fsck_ffs/fsck.h Sat May 13 12:13:54 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fsck.h,v 1.56 2022/11/17 06:40:38 chs Exp $ */
+/* $NetBSD: fsck.h,v 1.56.2.1 2023/05/13 12:13:54 martin Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -97,7 +97,7 @@ struct inostat {
* which are described by the following structure.
*/
extern struct inostatlist {
- long il_numalloced; /* number of inodes allocated in this cg */
+ size_t il_numalloced; /* number of inodes allocated in this cg */
struct inostat *il_stat;/* inostat info for this cylinder group */
} *inostathead;
diff -r cf10ae387c97 -r 8983e1db2e3e sbin/fsck_ffs/inode.c
--- a/sbin/fsck_ffs/inode.c Sat May 13 11:54:17 2023 +0000
+++ b/sbin/fsck_ffs/inode.c Sat May 13 12:13:54 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inode.c,v 1.73 2020/04/17 09:42:27 jdolecek Exp $ */
+/* $NetBSD: inode.c,v 1.73.6.1 2023/05/13 12:13:54 martin 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.73 2020/04/17 09:42:27 jdolecek Exp $");
+__RCSID("$NetBSD: inode.c,v 1.73.6.1 2023/05/13 12:13:54 martin Exp $");
#endif
#endif /* not lint */
@@ -731,11 +731,11 @@ allocino(ino_t request, int type)
return (0);
cg = ino_to_cg(sblock, ino);
/* If necessary, extend the inoinfo array. grow exponentially */
- if ((ino % sblock->fs_ipg) >= (uint64_t)inostathead[cg].il_numalloced) {
- unsigned long newalloced, i;
+ if ((ino % sblock->fs_ipg) >= inostathead[cg].il_numalloced) {
+ size_t newalloced, i;
newalloced = MIN(sblock->fs_ipg,
MAX(2 * inostathead[cg].il_numalloced, 10));
- info = calloc(newalloced, sizeof(struct inostat));
+ info = calloc(newalloced, sizeof(*info));
if (info == NULL) {
pwarn("cannot alloc %lu bytes to extend inoinfo\n",
sizeof(struct inostat) * newalloced);
diff -r cf10ae387c97 -r 8983e1db2e3e sbin/fsck_ffs/pass4.c
--- a/sbin/fsck_ffs/pass4.c Sat May 13 11:54:17 2023 +0000
+++ b/sbin/fsck_ffs/pass4.c Sat May 13 12:13:54 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pass4.c,v 1.28.38.1 2023/05/13 11:51:14 martin Exp $ */
+/* $NetBSD: pass4.c,v 1.28.38.2 2023/05/13 12:13:54 martin Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)pass4.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: pass4.c,v 1.28.38.1 2023/05/13 11:51:14 martin Exp $");
+__RCSID("$NetBSD: pass4.c,v 1.28.38.2 2023/05/13 12:13:54 martin Exp $");
#endif
#endif /* not lint */
@@ -62,7 +62,8 @@ pass4(void)
struct zlncnt *zlnp;
union dinode *dp;
struct inodesc idesc;
- int n, i;
+ int n;
+ size_t i;
uint32_t cg;
struct inostat *info;
diff -r cf10ae387c97 -r 8983e1db2e3e sbin/fsck_ffs/utilities.c
--- a/sbin/fsck_ffs/utilities.c Sat May 13 11:54:17 2023 +0000
+++ b/sbin/fsck_ffs/utilities.c Sat May 13 12:13:54 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: utilities.c,v 1.67 2022/11/17 06:40:38 chs Exp $ */
+/* $NetBSD: utilities.c,v 1.67.2.1 2023/05/13 12:13:54 martin Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)utilities.c 8.6 (Berkeley) 5/19/95";
#else
-__RCSID("$NetBSD: utilities.c,v 1.67 2022/11/17 06:40:38 chs Exp $");
+__RCSID("$NetBSD: utilities.c,v 1.67.2.1 2023/05/13 12:13:54 martin Exp $");
#endif
#endif /* not lint */
@@ -590,7 +590,7 @@ inoinfo(ino_t inum)
{
static struct inostat unallocated = { USTATE, 0, 0 };
struct inostatlist *ilp;
- int iloff;
+ size_t iloff;
if (inum > maxino)
errexit("inoinfo: inumber %llu out of range",
Home |
Main Index |
Thread Index |
Old Index