The fragtbl[], inside[] and around[] variables are needed by "fsck",

so we can't put them inside "#ifdef _KERNEL".
Put declarations inside .c files where needed to preserve namespace.
This commit is contained in:
drochner 1998-07-28 17:30:01 +00:00
parent 0816a4773b
commit 2dcc522f1d
3 changed files with 11 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ffs_alloc.c,v 1.22 1998/06/09 07:46:32 scottr Exp $ */
/* $NetBSD: ffs_alloc.c,v 1.23 1998/07/28 17:30:01 drochner Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -77,6 +77,10 @@ static ufs_daddr_t ffs_mapsearch __P((int, struct fs *, struct cg *,
static int ffs_checkblk __P((struct inode *, ufs_daddr_t, long size));
#endif
/* in ffs_tables.c */
extern int inside[], around[];
extern u_char *fragtbl[];
/*
* Allocate a block in the file system.
*

View File

@ -1,4 +1,4 @@
/* $NetBSD: ffs_subr.c,v 1.12 1998/06/13 16:26:22 kleink Exp $ */
/* $NetBSD: ffs_subr.c,v 1.13 1998/07/28 17:30:01 drochner Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -44,6 +44,10 @@
#include <ufs/ufs/ufs_bswap.h>
#endif
/* in ffs_tables.c */
extern int inside[], around[];
extern u_char *fragtbl[];
#ifdef _KERNEL
#include <sys/vnode.h>
#include <sys/mount.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: fs.h,v 1.10 1998/07/28 04:17:51 mycroft Exp $ */
/* $NetBSD: fs.h,v 1.11 1998/07/28 17:30:01 drochner Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -514,8 +514,3 @@ struct ocg {
* Number of indirects in a file system block.
*/
#define NINDIR(fs) ((fs)->fs_nindir)
#ifdef _KERNEL
extern int inside[], around[];
extern u_char *fragtbl[];
#endif