1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
4 * Copyright (C) 2002 Cluster File Systems, Inc.
6 * This file is part of the Lustre file system, http://www.lustre.org
7 * Lustre is a trademark of Cluster File Systems, Inc.
9 * You may have signed or agreed to another license before downloading
10 * this software. If so, you are bound by the terms and conditions
11 * of that agreement, and the following does not apply to you. See the
12 * LICENSE file included with this distribution for more information.
14 * If you did not agree to a different license, then this copy of Lustre
15 * is open source software; you can redistribute it and/or modify it
16 * under the terms of version 2 of the GNU General Public License as
17 * published by the Free Software Foundation.
19 * In either case, Lustre is distributed in the hope that it will be
20 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
21 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * license text for more details.
25 #define DEBUG_SUBSYSTEM S_CLASS
27 #include <linux/version.h>
28 #include <linux/vfs.h>
29 #include <obd_class.h>
30 #include <lprocfs_status.h>
34 static struct lprocfs_vars lprocfs_mgc_obd_vars[] = {
35 { "uuid", lprocfs_rd_uuid, 0, 0 },
36 { "ping", 0, lprocfs_wr_ping, 0 },
37 { "connect_flags", lprocfs_rd_connect_flags, 0, 0 },
38 { "mgs_server_uuid", lprocfs_rd_server_uuid, 0, 0 },
39 { "mgs_conn_uuid", lprocfs_rd_conn_uuid, 0, 0 },
43 static struct lprocfs_vars lprocfs_mgc_module_vars[] = {
44 { "num_refs", lprocfs_rd_numrefs, 0, 0 },
48 void lprocfs_mgc_init_vars(struct lprocfs_static_vars *lvars)
50 lvars->module_vars = lprocfs_mgc_module_vars;
51 lvars->obd_vars = lprocfs_mgc_obd_vars;