Deleted Added
full compact
vfs_subr.c (217326) vfs_subr.c (217555)
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 25 unchanged lines hidden (view full) ---

34 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
35 */
36
37/*
38 * External virtual filesystem routines
39 */
40
41#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 25 unchanged lines hidden (view full) ---

34 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95
35 */
36
37/*
38 * External virtual filesystem routines
39 */
40
41#include <sys/cdefs.h>
42__FBSDID("$FreeBSD: head/sys/kern/vfs_subr.c 217326 2011-01-12 19:54:19Z mdf $");
42__FBSDID("$FreeBSD: head/sys/kern/vfs_subr.c 217555 2011-01-18 21:14:18Z mdf $");
43
44#include "opt_ddb.h"
45
46#include <sys/param.h>
47#include <sys/systm.h>
48#include <sys/bio.h>
49#include <sys/buf.h>
50#include <sys/condvar.h>

--- 2942 unchanged lines hidden (view full) ---

2993 vfsconf2x(vfsp, &xvfsp);
2994 error = SYSCTL_OUT(req, &xvfsp, sizeof xvfsp);
2995 if (error)
2996 break;
2997 }
2998 return (error);
2999}
3000
43
44#include "opt_ddb.h"
45
46#include <sys/param.h>
47#include <sys/systm.h>
48#include <sys/bio.h>
49#include <sys/buf.h>
50#include <sys/condvar.h>

--- 2942 unchanged lines hidden (view full) ---

2993 vfsconf2x(vfsp, &xvfsp);
2994 error = SYSCTL_OUT(req, &xvfsp, sizeof xvfsp);
2995 if (error)
2996 break;
2997 }
2998 return (error);
2999}
3000
3001SYSCTL_PROC(_vfs, OID_AUTO, conflist, CTLFLAG_RD, NULL, 0, sysctl_vfs_conflist,
3001SYSCTL_PROC(_vfs, OID_AUTO, conflist, CTLTYPE_OPAQUE | CTLFLAG_RD,
3002 NULL, 0, sysctl_vfs_conflist,
3002 "S,xvfsconf", "List of all configured filesystems");
3003
3004#ifndef BURN_BRIDGES
3005static int sysctl_ovfs_conf(SYSCTL_HANDLER_ARGS);
3006
3007static int
3008vfs_sysctl(SYSCTL_HANDLER_ARGS)
3009{

--- 1145 unchanged lines hidden (view full) ---

4155 return (EINVAL);
4156 }
4157 VCTLTOREQ(&vc, req);
4158 error = VFS_SYSCTL(mp, vc.vc_op, req);
4159 vfs_rel(mp);
4160 return (error);
4161}
4162
3003 "S,xvfsconf", "List of all configured filesystems");
3004
3005#ifndef BURN_BRIDGES
3006static int sysctl_ovfs_conf(SYSCTL_HANDLER_ARGS);
3007
3008static int
3009vfs_sysctl(SYSCTL_HANDLER_ARGS)
3010{

--- 1145 unchanged lines hidden (view full) ---

4156 return (EINVAL);
4157 }
4158 VCTLTOREQ(&vc, req);
4159 error = VFS_SYSCTL(mp, vc.vc_op, req);
4160 vfs_rel(mp);
4161 return (error);
4162}
4163
4163SYSCTL_PROC(_vfs, OID_AUTO, ctl, CTLFLAG_WR, NULL, 0, sysctl_vfs_ctl, "",
4164SYSCTL_PROC(_vfs, OID_AUTO, ctl, CTLTYPE_OPAQUE | CTLFLAG_WR,
4165 NULL, 0, sysctl_vfs_ctl, "",
4164 "Sysctl by fsid");
4165
4166/*
4167 * Function to initialize a va_filerev field sensibly.
4168 * XXX: Wouldn't a random number make a lot more sense ??
4169 */
4170u_quad_t
4171init_va_filerev(void)

--- 268 unchanged lines hidden ---
4166 "Sysctl by fsid");
4167
4168/*
4169 * Function to initialize a va_filerev field sensibly.
4170 * XXX: Wouldn't a random number make a lot more sense ??
4171 */
4172u_quad_t
4173init_va_filerev(void)

--- 268 unchanged lines hidden ---