make filesystem vnodeop, specop, fifoop and vnodeopv_* arrays const
This commit is contained in:
parent
d0a540b250
commit
d9466585b7
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: advfsops.c,v 1.43 2000/11/08 08:06:24 jdolecek Exp $ */
|
||||
/* $NetBSD: advfsops.c,v 1.44 2001/01/22 12:17:36 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christian E. Hopps
|
||||
@ -826,9 +826,9 @@ adosfs_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||
* vfs generic function call table
|
||||
*/
|
||||
|
||||
extern struct vnodeopv_desc adosfs_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc adosfs_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *adosfs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc *adosfs_vnodeopv_descs[] = {
|
||||
&adosfs_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: advnops.c,v 1.55 2000/11/27 08:39:39 chs Exp $ */
|
||||
/* $NetBSD: advnops.c,v 1.56 2001/01/22 12:17:36 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christian E. Hopps
|
||||
@ -98,7 +98,7 @@ int adosfs_pathconf __P((void *));
|
||||
#define adosfs_update genfs_nullop
|
||||
#define adosfs_valloc genfs_eopnotsupp
|
||||
|
||||
struct vnodeopv_entry_desc adosfs_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc adosfs_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, adosfs_lookup }, /* lookup */
|
||||
{ &vop_create_desc, adosfs_create }, /* create */
|
||||
@ -148,7 +148,7 @@ struct vnodeopv_entry_desc adosfs_vnodeop_entries[] = {
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
struct vnodeopv_desc adosfs_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc adosfs_vnodeop_opv_desc =
|
||||
{ &adosfs_vnodeop_p, adosfs_vnodeop_entries };
|
||||
|
||||
int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: coda_vfsops.c,v 1.10 2000/03/30 11:24:17 augustss Exp $ */
|
||||
/* $NetBSD: coda_vfsops.c,v 1.11 2001/01/22 12:17:35 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -88,9 +88,9 @@ struct coda_op_stats coda_vfsopstats[CODA_VFSOPS_SIZE];
|
||||
extern int coda_nc_initialized; /* Set if cache has been initialized */
|
||||
extern int vc_nb_open __P((dev_t, int, int, struct proc *));
|
||||
extern struct cdevsw cdevsw[]; /* For sanity check in coda_mount */
|
||||
extern struct vnodeopv_desc coda_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc coda_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *coda_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const coda_vnodeopv_descs[] = {
|
||||
&coda_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -6,7 +6,7 @@ mkdir
|
||||
rmdir
|
||||
symlink
|
||||
*/
|
||||
/* $NetBSD: coda_vnops.c,v 1.22 2000/11/27 08:39:40 chs Exp $ */
|
||||
/* $NetBSD: coda_vnops.c,v 1.23 2001/01/22 12:17:35 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
@ -111,7 +111,7 @@ static int coda_lockdebug = 0;
|
||||
|
||||
/* Definition of the vnode operation vector */
|
||||
|
||||
struct vnodeopv_entry_desc coda_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc coda_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, coda_vop_error },
|
||||
{ &vop_lookup_desc, coda_lookup }, /* lookup */
|
||||
{ &vop_create_desc, coda_create }, /* create */
|
||||
@ -160,7 +160,7 @@ struct vnodeopv_entry_desc coda_vnodeop_entries[] = {
|
||||
{ (struct vnodeop_desc*)NULL, (int(*)(void *))NULL }
|
||||
};
|
||||
|
||||
struct vnodeopv_desc coda_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc coda_vnodeop_opv_desc =
|
||||
{ &coda_vnodeop_p, coda_vnodeop_entries };
|
||||
|
||||
/* Definitions of NetBSD vnodeop interfaces */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vfs_init.c,v 1.17 2001/01/22 09:57:25 jdolecek Exp $ */
|
||||
/* $NetBSD: vfs_init.c,v 1.18 2001/01/22 12:17:41 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
|
||||
@ -108,12 +108,12 @@ extern const struct vnodeop_desc * const vfs_op_descs[];
|
||||
* associated with any particular file system, and thus cannot
|
||||
* be initialized by vfs_attach().
|
||||
*/
|
||||
extern struct vnodeopv_desc dead_vnodeop_opv_desc;
|
||||
extern struct vnodeopv_desc fifo_vnodeop_opv_desc;
|
||||
extern struct vnodeopv_desc spec_vnodeop_opv_desc;
|
||||
extern struct vnodeopv_desc sync_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc dead_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc fifo_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc spec_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc sync_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *vfs_special_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const vfs_special_vnodeopv_descs[] = {
|
||||
&dead_vnodeop_opv_desc,
|
||||
&fifo_vnodeop_opv_desc,
|
||||
&spec_vnodeop_opv_desc,
|
||||
@ -129,8 +129,8 @@ struct vnodeopv_desc *vfs_special_vnodeopv_descs[] = {
|
||||
*/
|
||||
typedef int (*PFI) __P((void *));
|
||||
|
||||
static void vfs_opv_init_explicit __P((struct vnodeopv_desc *));
|
||||
static void vfs_opv_init_default __P((struct vnodeopv_desc *));
|
||||
static void vfs_opv_init_explicit __P((const struct vnodeopv_desc *));
|
||||
static void vfs_opv_init_default __P((const struct vnodeopv_desc *));
|
||||
#ifdef DEBUG
|
||||
static void vfs_op_check __P((void));
|
||||
#endif
|
||||
@ -171,10 +171,10 @@ vn_default_error(v)
|
||||
*/
|
||||
static void
|
||||
vfs_opv_init_explicit(vfs_opv_desc)
|
||||
struct vnodeopv_desc *vfs_opv_desc;
|
||||
const struct vnodeopv_desc *vfs_opv_desc;
|
||||
{
|
||||
int (**opv_desc_vector) __P((void *));
|
||||
struct vnodeopv_entry_desc *opve_descp;
|
||||
const struct vnodeopv_entry_desc *opve_descp;
|
||||
|
||||
opv_desc_vector = *(vfs_opv_desc->opv_desc_vector_p);
|
||||
|
||||
@ -215,7 +215,7 @@ vfs_opv_init_explicit(vfs_opv_desc)
|
||||
|
||||
static void
|
||||
vfs_opv_init_default(vfs_opv_desc)
|
||||
struct vnodeopv_desc *vfs_opv_desc;
|
||||
const struct vnodeopv_desc *vfs_opv_desc;
|
||||
{
|
||||
int j;
|
||||
int (**opv_desc_vector) __P((void *));
|
||||
@ -236,7 +236,7 @@ vfs_opv_init_default(vfs_opv_desc)
|
||||
|
||||
void
|
||||
vfs_opv_init(vopvdpp)
|
||||
struct vnodeopv_desc **vopvdpp;
|
||||
const struct vnodeopv_desc * const *vopvdpp;
|
||||
{
|
||||
int (**opv_desc_vector) __P((void *));
|
||||
int i;
|
||||
@ -270,7 +270,7 @@ vfs_opv_init(vopvdpp)
|
||||
|
||||
void
|
||||
vfs_opv_free(vopvdpp)
|
||||
struct vnodeopv_desc **vopvdpp;
|
||||
const struct vnodeopv_desc * const *vopvdpp;
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dead_vnops.c,v 1.29 2000/05/27 04:52:37 thorpej Exp $ */
|
||||
/* $NetBSD: dead_vnops.c,v 1.30 2001/01/22 12:17:37 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -97,7 +97,7 @@ int chkvnlock __P((struct vnode *));
|
||||
|
||||
int (**dead_vnodeop_p) __P((void *));
|
||||
|
||||
struct vnodeopv_entry_desc dead_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc dead_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, dead_lookup }, /* lookup */
|
||||
{ &vop_create_desc, dead_create }, /* create */
|
||||
@ -144,7 +144,7 @@ struct vnodeopv_entry_desc dead_vnodeop_entries[] = {
|
||||
{ &vop_bwrite_desc, dead_bwrite }, /* bwrite */
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc dead_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc dead_vnodeop_opv_desc =
|
||||
{ &dead_vnodeop_p, dead_vnodeop_entries };
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fdesc_vfsops.c,v 1.31 2000/06/10 18:27:02 assar Exp $ */
|
||||
/* $NetBSD: fdesc_vfsops.c,v 1.32 2001/01/22 12:17:37 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1995
|
||||
@ -324,9 +324,9 @@ fdesc_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||
return (EOPNOTSUPP);
|
||||
}
|
||||
|
||||
extern struct vnodeopv_desc fdesc_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc fdesc_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *fdesc_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const fdesc_vnodeopv_descs[] = {
|
||||
&fdesc_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fdesc_vnops.c,v 1.57 2000/11/08 14:28:13 ad Exp $ */
|
||||
/* $NetBSD: fdesc_vnops.c,v 1.58 2001/01/22 12:17:37 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -132,7 +132,7 @@ int fdesc_pathconf __P((void *));
|
||||
static int fdesc_attr __P((int, struct vattr *, struct ucred *, struct proc *));
|
||||
|
||||
int (**fdesc_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc fdesc_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc fdesc_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, fdesc_lookup }, /* lookup */
|
||||
{ &vop_create_desc, fdesc_create }, /* create */
|
||||
@ -179,7 +179,7 @@ struct vnodeopv_entry_desc fdesc_vnodeop_entries[] = {
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
|
||||
struct vnodeopv_desc fdesc_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc fdesc_vnodeop_opv_desc =
|
||||
{ &fdesc_vnodeop_p, fdesc_vnodeop_entries };
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fifo_vnops.c,v 1.28 2000/03/30 12:22:13 augustss Exp $ */
|
||||
/* $NetBSD: fifo_vnops.c,v 1.29 2001/01/22 12:17:38 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990, 1993, 1995
|
||||
@ -66,7 +66,7 @@ struct fifoinfo {
|
||||
};
|
||||
|
||||
int (**fifo_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc fifo_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc fifo_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, fifo_lookup }, /* lookup */
|
||||
{ &vop_create_desc, fifo_create }, /* create */
|
||||
@ -112,7 +112,7 @@ struct vnodeopv_entry_desc fifo_vnodeop_entries[] = {
|
||||
{ &vop_bwrite_desc, fifo_bwrite }, /* bwrite */
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc fifo_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc fifo_vnodeop_opv_desc =
|
||||
{ &fifo_vnodeop_p, fifo_vnodeop_entries };
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kernfs_vfsops.c,v 1.37 2000/06/10 18:27:03 assar Exp $ */
|
||||
/* $NetBSD: kernfs_vfsops.c,v 1.38 2001/01/22 12:17:38 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1995
|
||||
@ -361,9 +361,9 @@ kernfs_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||
return (EOPNOTSUPP);
|
||||
}
|
||||
|
||||
extern struct vnodeopv_desc kernfs_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc kernfs_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *kernfs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const kernfs_vnodeopv_descs[] = {
|
||||
&kernfs_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kernfs_vnops.c,v 1.70 2000/08/03 03:41:18 thorpej Exp $ */
|
||||
/* $NetBSD: kernfs_vnops.c,v 1.71 2001/01/22 12:17:38 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -147,7 +147,7 @@ int kernfs_xread __P((struct kern_target *, int, char **, int));
|
||||
int kernfs_xwrite __P((struct kern_target *, char *, int));
|
||||
|
||||
int (**kernfs_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc kernfs_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc kernfs_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, kernfs_lookup }, /* lookup */
|
||||
{ &vop_create_desc, kernfs_create }, /* create */
|
||||
@ -193,7 +193,7 @@ struct vnodeopv_entry_desc kernfs_vnodeop_entries[] = {
|
||||
{ &vop_bwrite_desc, kernfs_bwrite }, /* bwrite */
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc kernfs_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc kernfs_vnodeop_opv_desc =
|
||||
{ &kernfs_vnodeop_p, kernfs_vnodeop_entries };
|
||||
|
||||
int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: null_vfsops.c,v 1.28 2000/11/08 14:28:13 ad Exp $ */
|
||||
/* $NetBSD: null_vfsops.c,v 1.29 2001/01/22 12:17:38 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 National Aeronautics & Space Administration
|
||||
@ -269,9 +269,9 @@ nullfs_unmount(mp, mntflags, p)
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern struct vnodeopv_desc null_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc null_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *nullfs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const nullfs_vnodeopv_descs[] = {
|
||||
&null_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: null_vnops.c,v 1.17 2000/03/13 23:52:41 soren Exp $ */
|
||||
/* $NetBSD: null_vnops.c,v 1.18 2001/01/22 12:17:38 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 National Aeronautics & Space Administration
|
||||
@ -71,7 +71,7 @@
|
||||
*
|
||||
* Ancestors:
|
||||
* @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92
|
||||
* $Id: null_vnops.c,v 1.17 2000/03/13 23:52:41 soren Exp $
|
||||
* $Id: null_vnops.c,v 1.18 2001/01/22 12:17:38 jdolecek Exp $
|
||||
* ...and...
|
||||
* @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project
|
||||
*/
|
||||
@ -224,7 +224,7 @@
|
||||
* Global vfs data structures
|
||||
*/
|
||||
int (**null_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc null_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc null_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, layer_bypass },
|
||||
|
||||
{ &vop_lookup_desc, layer_lookup },
|
||||
@ -247,5 +247,5 @@ struct vnodeopv_entry_desc null_vnodeop_entries[] = {
|
||||
|
||||
{ (struct vnodeop_desc*)NULL, (int(*)__P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc null_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc null_vnodeop_opv_desc =
|
||||
{ &null_vnodeop_p, null_vnodeop_entries };
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: overlay_vfsops.c,v 1.5 2000/11/08 14:28:14 ad Exp $ */
|
||||
/* $NetBSD: overlay_vfsops.c,v 1.6 2001/01/22 12:17:39 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999, 2000 National Aeronautics & Space Administration
|
||||
@ -260,9 +260,9 @@ ov_unmount(mp, mntflags, p)
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern struct vnodeopv_desc overlay_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc overlay_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *ov_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const ov_vnodeopv_descs[] = {
|
||||
&overlay_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: overlay_vnops.c,v 1.2 2000/03/13 23:52:41 soren Exp $ */
|
||||
/* $NetBSD: overlay_vnops.c,v 1.3 2001/01/22 12:17:39 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999, 2000 National Aeronautics & Space Administration
|
||||
@ -71,7 +71,7 @@
|
||||
*
|
||||
* Ancestors:
|
||||
* @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92
|
||||
* $Id: overlay_vnops.c,v 1.2 2000/03/13 23:52:41 soren Exp $
|
||||
* $Id: overlay_vnops.c,v 1.3 2001/01/22 12:17:39 jdolecek Exp $
|
||||
* ...and...
|
||||
* @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project
|
||||
*/
|
||||
@ -147,7 +147,7 @@
|
||||
* Global vfs data structures
|
||||
*/
|
||||
int (**overlay_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc overlay_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc overlay_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, layer_bypass },
|
||||
|
||||
{ &vop_lookup_desc, layer_lookup },
|
||||
@ -170,5 +170,5 @@ struct vnodeopv_entry_desc overlay_vnodeop_entries[] = {
|
||||
|
||||
{ (struct vnodeop_desc*)NULL, (int(*)__P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc overlay_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc overlay_vnodeop_opv_desc =
|
||||
{ &overlay_vnodeop_p, overlay_vnodeop_entries };
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: portal_vfsops.c,v 1.24 2000/06/10 18:27:03 assar Exp $ */
|
||||
/* $NetBSD: portal_vfsops.c,v 1.25 2001/01/22 12:17:39 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1995
|
||||
@ -347,9 +347,9 @@ portal_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||
return (EOPNOTSUPP);
|
||||
}
|
||||
|
||||
extern struct vnodeopv_desc portal_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc portal_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *portal_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const portal_vnodeopv_descs[] = {
|
||||
&portal_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: portal_vnops.c,v 1.36 2000/06/05 17:21:38 thorpej Exp $ */
|
||||
/* $NetBSD: portal_vnops.c,v 1.37 2001/01/22 12:17:39 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -115,7 +115,7 @@ int portal_pathconf __P((void *));
|
||||
#define portal_bwrite genfs_eopnotsupp
|
||||
|
||||
int (**portal_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc portal_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc portal_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, portal_lookup }, /* lookup */
|
||||
{ &vop_create_desc, portal_create }, /* create */
|
||||
@ -161,7 +161,7 @@ struct vnodeopv_entry_desc portal_vnodeop_entries[] = {
|
||||
{ &vop_bwrite_desc, portal_bwrite }, /* bwrite */
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc portal_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc portal_vnodeop_opv_desc =
|
||||
{ &portal_vnodeop_p, portal_vnodeop_entries };
|
||||
|
||||
static void
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: procfs_vfsops.c,v 1.36 2001/01/17 00:09:08 fvdl Exp $ */
|
||||
/* $NetBSD: procfs_vfsops.c,v 1.37 2001/01/22 12:17:39 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993 Jan-Simon Pendry
|
||||
@ -307,9 +307,9 @@ procfs_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||
return (EOPNOTSUPP);
|
||||
}
|
||||
|
||||
extern struct vnodeopv_desc procfs_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc procfs_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *procfs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const procfs_vnodeopv_descs[] = {
|
||||
&procfs_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: procfs_vnops.c,v 1.76 2001/01/17 00:09:08 fvdl Exp $ */
|
||||
/* $NetBSD: procfs_vnops.c,v 1.77 2001/01/22 12:17:39 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993 Jan-Simon Pendry
|
||||
@ -166,7 +166,7 @@ static pid_t atopid __P((const char *, u_int));
|
||||
* procfs vnode operations.
|
||||
*/
|
||||
int (**procfs_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc procfs_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc procfs_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, procfs_lookup }, /* lookup */
|
||||
{ &vop_create_desc, procfs_create }, /* create */
|
||||
@ -211,7 +211,7 @@ struct vnodeopv_entry_desc procfs_vnodeop_entries[] = {
|
||||
{ &vop_update_desc, procfs_update }, /* update */
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc procfs_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc procfs_vnodeop_opv_desc =
|
||||
{ &procfs_vnodeop_p, procfs_vnodeop_entries };
|
||||
/*
|
||||
* set things up for doing i/o on
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: spec_vnops.c,v 1.52 2000/11/08 05:29:32 chs Exp $ */
|
||||
/* $NetBSD: spec_vnops.c,v 1.53 2001/01/22 12:17:40 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -74,7 +74,7 @@ const char devcls[] = "devcls";
|
||||
*/
|
||||
|
||||
int (**spec_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc spec_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc spec_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, spec_lookup }, /* lookup */
|
||||
{ &vop_create_desc, spec_create }, /* create */
|
||||
@ -121,7 +121,7 @@ struct vnodeopv_entry_desc spec_vnodeop_entries[] = {
|
||||
{ &vop_bwrite_desc, spec_bwrite }, /* bwrite */
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc spec_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc spec_vnodeop_opv_desc =
|
||||
{ &spec_vnodeop_p, spec_vnodeop_entries };
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sync_vnops.c,v 1.5 2000/11/19 05:53:21 chs Exp $ */
|
||||
/* $NetBSD: sync_vnops.c,v 1.6 2001/01/22 12:17:40 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Marshall Kirk McKusick. All Rights Reserved.
|
||||
@ -42,7 +42,7 @@
|
||||
#include <miscfs/syncfs/syncfs.h>
|
||||
|
||||
int (**sync_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc sync_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc sync_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_close_desc, sync_close }, /* close */
|
||||
{ &vop_fsync_desc, sync_fsync }, /* fsync */
|
||||
@ -55,7 +55,7 @@ struct vnodeopv_entry_desc sync_vnodeop_entries[] = {
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
|
||||
struct vnodeopv_desc sync_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc sync_vnodeop_opv_desc =
|
||||
{ &sync_vnodeop_p, sync_vnodeop_entries };
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: umap_vfsops.c,v 1.26 2000/11/08 14:28:14 ad Exp $ */
|
||||
/* $NetBSD: umap_vfsops.c,v 1.27 2001/01/22 12:17:40 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -282,9 +282,9 @@ umapfs_unmount(mp, mntflags, p)
|
||||
return (0);
|
||||
}
|
||||
|
||||
extern struct vnodeopv_desc umapfs_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc umapfs_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *umapfs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const umapfs_vnodeopv_descs[] = {
|
||||
&umapfs_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: umap_vnops.c,v 1.17 2001/01/18 20:28:24 jdolecek Exp $ */
|
||||
/* $NetBSD: umap_vnops.c,v 1.18 2001/01/22 12:17:40 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -70,7 +70,7 @@ int umap_rename __P((void *));
|
||||
*
|
||||
*/
|
||||
int (**umap_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc umap_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc umap_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, umap_bypass },
|
||||
|
||||
{ &vop_lookup_desc, umap_lookup },
|
||||
@ -94,7 +94,7 @@ struct vnodeopv_entry_desc umap_vnodeop_entries[] = {
|
||||
|
||||
{ (struct vnodeop_desc*) NULL, (int(*) __P((void *))) NULL }
|
||||
};
|
||||
struct vnodeopv_desc umapfs_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc umapfs_vnodeop_opv_desc =
|
||||
{ &umap_vnodeop_p, umap_vnodeop_entries };
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: union_vfsops.c,v 1.25 2000/06/10 18:27:04 assar Exp $ */
|
||||
/* $NetBSD: union_vfsops.c,v 1.26 2001/01/22 12:17:40 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 The Regents of the University of California.
|
||||
@ -560,9 +560,9 @@ union_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||
return (EOPNOTSUPP);
|
||||
}
|
||||
|
||||
extern struct vnodeopv_desc union_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc union_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *union_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const union_vnodeopv_descs[] = {
|
||||
&union_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: union_vnops.c,v 1.49 2000/12/11 02:50:17 chs Exp $ */
|
||||
/* $NetBSD: union_vnops.c,v 1.50 2001/01/22 12:17:40 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993, 1994, 1995 Jan-Simon Pendry.
|
||||
@ -104,7 +104,7 @@ static int union_lookup1 __P((struct vnode *, struct vnode **,
|
||||
* Global vfs data structures
|
||||
*/
|
||||
int (**union_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc union_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc union_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, union_lookup }, /* lookup */
|
||||
{ &vop_create_desc, union_create }, /* create */
|
||||
@ -154,7 +154,7 @@ struct vnodeopv_entry_desc union_vnodeop_entries[] = {
|
||||
#endif
|
||||
{ NULL, NULL }
|
||||
};
|
||||
struct vnodeopv_desc union_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc union_vnodeop_opv_desc =
|
||||
{ &union_vnodeop_p, union_vnodeop_entries };
|
||||
|
||||
#define FIXUP(un) { \
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: msdosfs_vfsops.c,v 1.72 2000/12/10 19:36:31 chs Exp $ */
|
||||
/* $NetBSD: msdosfs_vfsops.c,v 1.73 2001/01/22 12:17:36 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
|
||||
@ -100,9 +100,9 @@ static int update_mp __P((struct mount *, struct msdosfs_args *));
|
||||
|
||||
#define ROOTNAME "root_device"
|
||||
|
||||
extern struct vnodeopv_desc msdosfs_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc msdosfs_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *msdosfs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const msdosfs_vnodeopv_descs[] = {
|
||||
&msdosfs_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: msdosfs_vnops.c,v 1.105 2000/11/27 08:39:47 chs Exp $ */
|
||||
/* $NetBSD: msdosfs_vnops.c,v 1.106 2001/01/22 12:17:36 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
|
||||
@ -1867,7 +1867,7 @@ msdosfs_pathconf(v)
|
||||
|
||||
/* Global vfs data structures for msdosfs */
|
||||
int (**msdosfs_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc msdosfs_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc msdosfs_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, msdosfs_lookup }, /* lookup */
|
||||
{ &vop_create_desc, msdosfs_create }, /* create */
|
||||
@ -1914,5 +1914,5 @@ struct vnodeopv_entry_desc msdosfs_vnodeop_entries[] = {
|
||||
{ &vop_size_desc, genfs_size }, /* size */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
struct vnodeopv_desc msdosfs_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc msdosfs_vnodeop_opv_desc =
|
||||
{ &msdosfs_vnodeop_p, msdosfs_vnodeop_entries };
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nfs_vfsops.c,v 1.98 2000/12/10 19:36:32 chs Exp $ */
|
||||
/* $NetBSD: nfs_vfsops.c,v 1.99 2001/01/22 12:17:41 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1995
|
||||
@ -84,11 +84,11 @@ int nfs_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
|
||||
* nfs vfs operations.
|
||||
*/
|
||||
|
||||
extern struct vnodeopv_desc nfsv2_vnodeop_opv_desc;
|
||||
extern struct vnodeopv_desc spec_nfsv2nodeop_opv_desc;
|
||||
extern struct vnodeopv_desc fifo_nfsv2nodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc nfsv2_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc spec_nfsv2nodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc fifo_nfsv2nodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *nfs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const nfs_vnodeopv_descs[] = {
|
||||
&nfsv2_vnodeop_opv_desc,
|
||||
&spec_nfsv2nodeop_opv_desc,
|
||||
&fifo_nfsv2nodeop_opv_desc,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: nfs_vnops.c,v 1.126 2000/12/12 17:13:17 chs Exp $ */
|
||||
/* $NetBSD: nfs_vnops.c,v 1.127 2001/01/22 12:17:42 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -92,7 +92,7 @@
|
||||
* Global vfs data structures for nfs
|
||||
*/
|
||||
int (**nfsv2_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc nfsv2_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc nfsv2_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, nfs_lookup }, /* lookup */
|
||||
{ &vop_create_desc, nfs_create }, /* create */
|
||||
@ -142,14 +142,14 @@ struct vnodeopv_entry_desc nfsv2_vnodeop_entries[] = {
|
||||
{ &vop_putpages_desc, nfs_putpages }, /* putpages */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
struct vnodeopv_desc nfsv2_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc nfsv2_vnodeop_opv_desc =
|
||||
{ &nfsv2_vnodeop_p, nfsv2_vnodeop_entries };
|
||||
|
||||
/*
|
||||
* Special device vnode ops
|
||||
*/
|
||||
int (**spec_nfsv2nodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc spec_nfsv2nodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc spec_nfsv2nodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, spec_lookup }, /* lookup */
|
||||
{ &vop_create_desc, spec_create }, /* create */
|
||||
@ -197,11 +197,11 @@ struct vnodeopv_entry_desc spec_nfsv2nodeop_entries[] = {
|
||||
{ &vop_bwrite_desc, vn_bwrite }, /* bwrite */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
struct vnodeopv_desc spec_nfsv2nodeop_opv_desc =
|
||||
const struct vnodeopv_desc spec_nfsv2nodeop_opv_desc =
|
||||
{ &spec_nfsv2nodeop_p, spec_nfsv2nodeop_entries };
|
||||
|
||||
int (**fifo_nfsv2nodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc fifo_nfsv2nodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc fifo_nfsv2nodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, fifo_lookup }, /* lookup */
|
||||
{ &vop_create_desc, fifo_create }, /* create */
|
||||
@ -249,7 +249,7 @@ struct vnodeopv_entry_desc fifo_nfsv2nodeop_entries[] = {
|
||||
{ &vop_bwrite_desc, vn_bwrite }, /* bwrite */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
struct vnodeopv_desc fifo_nfsv2nodeop_opv_desc =
|
||||
const struct vnodeopv_desc fifo_nfsv2nodeop_opv_desc =
|
||||
{ &fifo_nfsv2nodeop_p, fifo_nfsv2nodeop_entries };
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ntfs_vfsops.c,v 1.30 2000/06/28 03:32:55 mrg Exp $ */
|
||||
/* $NetBSD: ntfs_vfsops.c,v 1.31 2001/01/22 12:17:37 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999 Semen Ustimenko
|
||||
@ -1015,9 +1015,9 @@ static struct vfsops ntfs_vfsops = {
|
||||
};
|
||||
VFS_SET(ntfs_vfsops, ntfs, 0);
|
||||
#elif defined(__NetBSD__)
|
||||
extern struct vnodeopv_desc ntfs_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc ntfs_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *ntfs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const ntfs_vnodeopv_descs[] = {
|
||||
&ntfs_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ntfs_vnops.c,v 1.30 2000/09/19 22:02:49 fvdl Exp $ */
|
||||
/* $NetBSD: ntfs_vnops.c,v 1.31 2001/01/22 12:17:37 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -916,7 +916,7 @@ VNODEOP_SET(ntfs_vnodeop_opv_desc);
|
||||
|
||||
#else /* !FreeBSD */
|
||||
|
||||
struct vnodeopv_entry_desc ntfs_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc ntfs_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, (vop_t *) ntfs_bypass },
|
||||
{ &vop_lookup_desc, (vop_t *) ntfs_lookup }, /* lookup */
|
||||
{ &vop_create_desc, genfs_eopnotsupp }, /* create */
|
||||
@ -964,7 +964,7 @@ struct vnodeopv_entry_desc ntfs_vnodeop_entries[] = {
|
||||
{ &vop_bwrite_desc, vn_bwrite }, /* bwrite */
|
||||
{ (struct vnodeop_desc *)NULL, (int (*) __P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc ntfs_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc ntfs_vnodeop_opv_desc =
|
||||
{ &ntfs_vnodeop_p, ntfs_vnodeop_entries };
|
||||
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mount.h,v 1.87 2000/11/27 08:39:52 chs Exp $ */
|
||||
/* $NetBSD: mount.h,v 1.88 2001/01/22 12:17:41 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1991, 1993
|
||||
@ -323,7 +323,7 @@ struct vfsops {
|
||||
int (*vfs_mountroot) __P((void));
|
||||
int (*vfs_checkexp) __P((struct mount *mp, struct mbuf *nam,
|
||||
int *extflagsp, struct ucred **credanonp));
|
||||
struct vnodeopv_desc **vfs_opv_descs;
|
||||
const struct vnodeopv_desc * const *vfs_opv_descs;
|
||||
int vfs_refcount;
|
||||
LIST_ENTRY(vfsops) vfs_list;
|
||||
};
|
||||
@ -443,8 +443,8 @@ extern struct simplelock spechash_slock;
|
||||
long makefstype __P((const char *));
|
||||
int dounmount __P((struct mount *, int, struct proc *));
|
||||
void vfsinit __P((void));
|
||||
void vfs_opv_init __P((struct vnodeopv_desc **));
|
||||
void vfs_opv_free __P((struct vnodeopv_desc **));
|
||||
void vfs_opv_init __P((const struct vnodeopv_desc * const *));
|
||||
void vfs_opv_free __P((const struct vnodeopv_desc * const *));
|
||||
#ifdef DEBUG
|
||||
void vfs_bufstats __P((void));
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vnode.h,v 1.85 2001/01/18 20:28:23 jdolecek Exp $ */
|
||||
/* $NetBSD: vnode.h,v 1.86 2001/01/22 12:17:41 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -435,7 +435,7 @@ struct vnodeopv_entry_desc {
|
||||
struct vnodeopv_desc {
|
||||
/* ptr to the ptr to the vector where op should go */
|
||||
int (***opv_desc_vector_p) __P((void *));
|
||||
struct vnodeopv_entry_desc *opv_desc_ops; /* null terminated list */
|
||||
const struct vnodeopv_entry_desc *opv_desc_ops; /* null terminated list */
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ext2fs_vfsops.c,v 1.41 2000/12/10 19:36:32 chs Exp $ */
|
||||
/* $NetBSD: ext2fs_vfsops.c,v 1.42 2001/01/22 12:17:42 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Manuel Bouyer.
|
||||
@ -76,11 +76,11 @@ extern struct lock ufs_hashlock;
|
||||
int ext2fs_sbupdate __P((struct ufsmount *, int));
|
||||
static int ext2fs_checksb __P((struct ext2fs *, int));
|
||||
|
||||
extern struct vnodeopv_desc ext2fs_vnodeop_opv_desc;
|
||||
extern struct vnodeopv_desc ext2fs_specop_opv_desc;
|
||||
extern struct vnodeopv_desc ext2fs_fifoop_opv_desc;
|
||||
extern const struct vnodeopv_desc ext2fs_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc ext2fs_specop_opv_desc;
|
||||
extern const struct vnodeopv_desc ext2fs_fifoop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *ext2fs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const ext2fs_vnodeopv_descs[] = {
|
||||
&ext2fs_vnodeop_opv_desc,
|
||||
&ext2fs_specop_opv_desc,
|
||||
&ext2fs_fifoop_opv_desc,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ext2fs_vnops.c,v 1.30 2000/11/27 08:39:53 chs Exp $ */
|
||||
/* $NetBSD: ext2fs_vnops.c,v 1.31 2001/01/22 12:17:42 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Manuel Bouyer.
|
||||
@ -1417,7 +1417,7 @@ ext2fs_reclaim(v)
|
||||
|
||||
/* Global vfs data structures for ext2fs. */
|
||||
int (**ext2fs_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc ext2fs_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc ext2fs_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, ext2fs_lookup }, /* lookup */
|
||||
{ &vop_create_desc, ext2fs_create }, /* create */
|
||||
@ -1468,11 +1468,11 @@ struct vnodeopv_entry_desc ext2fs_vnodeop_entries[] = {
|
||||
{ &vop_size_desc, genfs_size }, /* size */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
struct vnodeopv_desc ext2fs_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc ext2fs_vnodeop_opv_desc =
|
||||
{ &ext2fs_vnodeop_p, ext2fs_vnodeop_entries };
|
||||
|
||||
int (**ext2fs_specop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc ext2fs_specop_entries[] = {
|
||||
const struct vnodeopv_entry_desc ext2fs_specop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, spec_lookup }, /* lookup */
|
||||
{ &vop_create_desc, spec_create }, /* create */
|
||||
@ -1519,11 +1519,11 @@ struct vnodeopv_entry_desc ext2fs_specop_entries[] = {
|
||||
{ &vop_bwrite_desc, vn_bwrite }, /* bwrite */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
struct vnodeopv_desc ext2fs_specop_opv_desc =
|
||||
const struct vnodeopv_desc ext2fs_specop_opv_desc =
|
||||
{ &ext2fs_specop_p, ext2fs_specop_entries };
|
||||
|
||||
int (**ext2fs_fifoop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc ext2fs_fifoop_entries[] = {
|
||||
const struct vnodeopv_entry_desc ext2fs_fifoop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, fifo_lookup }, /* lookup */
|
||||
{ &vop_create_desc, fifo_create }, /* create */
|
||||
@ -1570,5 +1570,5 @@ struct vnodeopv_entry_desc ext2fs_fifoop_entries[] = {
|
||||
{ &vop_bwrite_desc, vn_bwrite }, /* bwrite */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
struct vnodeopv_desc ext2fs_fifoop_opv_desc =
|
||||
const struct vnodeopv_desc ext2fs_fifoop_opv_desc =
|
||||
{ &ext2fs_fifoop_p, ext2fs_fifoop_entries };
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ffs_vfsops.c,v 1.78 2001/01/10 17:49:18 mycroft Exp $ */
|
||||
/* $NetBSD: ffs_vfsops.c,v 1.79 2001/01/22 12:17:43 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1991, 1993, 1994
|
||||
@ -83,7 +83,7 @@ extern struct vnodeopv_desc ffs_vnodeop_opv_desc;
|
||||
extern struct vnodeopv_desc ffs_specop_opv_desc;
|
||||
extern struct vnodeopv_desc ffs_fifoop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *ffs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const ffs_vnodeopv_descs[] = {
|
||||
&ffs_vnodeop_opv_desc,
|
||||
&ffs_specop_opv_desc,
|
||||
&ffs_fifoop_opv_desc,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ffs_vnops.c,v 1.36 2000/12/10 19:41:35 chs Exp $ */
|
||||
/* $NetBSD: ffs_vnops.c,v 1.37 2001/01/22 12:17:43 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
@ -65,7 +65,7 @@ static int ffs_full_fsync __P((void *));
|
||||
|
||||
/* Global vfs data structures for ufs. */
|
||||
int (**ffs_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc ffs_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc ffs_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, ufs_lookup }, /* lookup */
|
||||
{ &vop_create_desc, ufs_create }, /* create */
|
||||
@ -119,11 +119,11 @@ struct vnodeopv_entry_desc ffs_vnodeop_entries[] = {
|
||||
{ &vop_size_desc, ffs_size }, /* size */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
struct vnodeopv_desc ffs_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc ffs_vnodeop_opv_desc =
|
||||
{ &ffs_vnodeop_p, ffs_vnodeop_entries };
|
||||
|
||||
int (**ffs_specop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc ffs_specop_entries[] = {
|
||||
const struct vnodeopv_entry_desc ffs_specop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, spec_lookup }, /* lookup */
|
||||
{ &vop_create_desc, spec_create }, /* create */
|
||||
@ -171,11 +171,11 @@ struct vnodeopv_entry_desc ffs_specop_entries[] = {
|
||||
{ &vop_bwrite_desc, vn_bwrite }, /* bwrite */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
struct vnodeopv_desc ffs_specop_opv_desc =
|
||||
const struct vnodeopv_desc ffs_specop_opv_desc =
|
||||
{ &ffs_specop_p, ffs_specop_entries };
|
||||
|
||||
int (**ffs_fifoop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc ffs_fifoop_entries[] = {
|
||||
const struct vnodeopv_entry_desc ffs_fifoop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, fifo_lookup }, /* lookup */
|
||||
{ &vop_create_desc, fifo_create }, /* create */
|
||||
@ -223,7 +223,7 @@ struct vnodeopv_entry_desc ffs_fifoop_entries[] = {
|
||||
{ &vop_bwrite_desc, vn_bwrite }, /* bwrite */
|
||||
{ NULL, NULL }
|
||||
};
|
||||
struct vnodeopv_desc ffs_fifoop_opv_desc =
|
||||
const struct vnodeopv_desc ffs_fifoop_opv_desc =
|
||||
{ &ffs_fifoop_p, ffs_fifoop_entries };
|
||||
|
||||
int doclusterread = 1;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lfs_vfsops.c,v 1.62 2000/12/03 07:34:49 perseant Exp $ */
|
||||
/* $NetBSD: lfs_vfsops.c,v 1.63 2001/01/22 12:17:43 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
@ -106,11 +106,11 @@
|
||||
|
||||
int lfs_mountfs __P((struct vnode *, struct mount *, struct proc *));
|
||||
|
||||
extern struct vnodeopv_desc lfs_vnodeop_opv_desc;
|
||||
extern struct vnodeopv_desc lfs_specop_opv_desc;
|
||||
extern struct vnodeopv_desc lfs_fifoop_opv_desc;
|
||||
extern const struct vnodeopv_desc lfs_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc lfs_specop_opv_desc;
|
||||
extern const struct vnodeopv_desc lfs_fifoop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *lfs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const lfs_vnodeopv_descs[] = {
|
||||
&lfs_vnodeop_opv_desc,
|
||||
&lfs_specop_opv_desc,
|
||||
&lfs_fifoop_opv_desc,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: lfs_vnops.c,v 1.49 2000/11/18 02:11:23 toshii Exp $ */
|
||||
/* $NetBSD: lfs_vnops.c,v 1.50 2001/01/22 12:17:43 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
@ -101,7 +101,7 @@
|
||||
|
||||
/* Global vfs data structures for lfs. */
|
||||
int (**lfs_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc lfs_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc lfs_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, ufs_lookup }, /* lookup */
|
||||
{ &vop_create_desc, lfs_create }, /* create */
|
||||
@ -150,11 +150,11 @@ struct vnodeopv_entry_desc lfs_vnodeop_entries[] = {
|
||||
{ &vop_bwrite_desc, lfs_bwrite }, /* bwrite */
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc lfs_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc lfs_vnodeop_opv_desc =
|
||||
{ &lfs_vnodeop_p, lfs_vnodeop_entries };
|
||||
|
||||
int (**lfs_specop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc lfs_specop_entries[] = {
|
||||
const struct vnodeopv_entry_desc lfs_specop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, spec_lookup }, /* lookup */
|
||||
{ &vop_create_desc, spec_create }, /* create */
|
||||
@ -201,11 +201,11 @@ struct vnodeopv_entry_desc lfs_specop_entries[] = {
|
||||
{ &vop_bwrite_desc, vn_bwrite }, /* bwrite */
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc lfs_specop_opv_desc =
|
||||
const struct vnodeopv_desc lfs_specop_opv_desc =
|
||||
{ &lfs_specop_p, lfs_specop_entries };
|
||||
|
||||
int (**lfs_fifoop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc lfs_fifoop_entries[] = {
|
||||
const struct vnodeopv_entry_desc lfs_fifoop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, fifo_lookup }, /* lookup */
|
||||
{ &vop_create_desc, fifo_create }, /* create */
|
||||
@ -252,7 +252,7 @@ struct vnodeopv_entry_desc lfs_fifoop_entries[] = {
|
||||
{ &vop_bwrite_desc, lfs_bwrite }, /* bwrite */
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc lfs_fifoop_opv_desc =
|
||||
const struct vnodeopv_desc lfs_fifoop_opv_desc =
|
||||
{ &lfs_fifoop_p, lfs_fifoop_entries };
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mfs_vfsops.c,v 1.30 2000/10/13 17:59:11 simonb Exp $ */
|
||||
/* $NetBSD: mfs_vfsops.c,v 1.31 2001/01/22 12:17:43 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1990, 1993, 1994
|
||||
@ -72,9 +72,9 @@ extern int (**mfs_vnodeop_p) __P((void *));
|
||||
* mfs vfs operations.
|
||||
*/
|
||||
|
||||
extern struct vnodeopv_desc mfs_vnodeop_opv_desc;
|
||||
extern const struct vnodeopv_desc mfs_vnodeop_opv_desc;
|
||||
|
||||
struct vnodeopv_desc *mfs_vnodeopv_descs[] = {
|
||||
const struct vnodeopv_desc * const mfs_vnodeopv_descs[] = {
|
||||
&mfs_vnodeop_opv_desc,
|
||||
NULL,
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mfs_vnops.c,v 1.26 2000/11/27 08:39:57 chs Exp $ */
|
||||
/* $NetBSD: mfs_vnops.c,v 1.27 2001/01/22 12:17:44 jdolecek Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -57,7 +57,7 @@
|
||||
* mfs vnode operations.
|
||||
*/
|
||||
int (**mfs_vnodeop_p) __P((void *));
|
||||
struct vnodeopv_entry_desc mfs_vnodeop_entries[] = {
|
||||
const struct vnodeopv_entry_desc mfs_vnodeop_entries[] = {
|
||||
{ &vop_default_desc, vn_default_error },
|
||||
{ &vop_lookup_desc, mfs_lookup }, /* lookup */
|
||||
{ &vop_create_desc, mfs_create }, /* create */
|
||||
@ -102,7 +102,7 @@ struct vnodeopv_entry_desc mfs_vnodeop_entries[] = {
|
||||
{ &vop_bwrite_desc, mfs_bwrite }, /* bwrite */
|
||||
{ (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL }
|
||||
};
|
||||
struct vnodeopv_desc mfs_vnodeop_opv_desc =
|
||||
const struct vnodeopv_desc mfs_vnodeop_opv_desc =
|
||||
{ &mfs_vnodeop_p, mfs_vnodeop_entries };
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user