Whamcloud - gitweb
dccd213e372b3d92d7ec55ed57e289b16f75d87c
[fs/lustre-release.git] / lustre / utils / obdctl.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  * GPL HEADER START
5  *
6  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 only,
10  * as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * General Public License version 2 for more details (a copy is included
16  * in the LICENSE file that accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License
19  * version 2 along with this program; If not, see
20  * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
21  *
22  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
23  * CA 95054 USA or visit www.sun.com if you need additional information or
24  * have any questions.
25  *
26  * GPL HEADER END
27  */
28 /*
29  * Copyright  2008 Sun Microsystems, Inc. All rights reserved
30  * Use is subject to license terms.
31  */
32 /*
33  * This file is part of Lustre, http://www.lustre.org/
34  * Lustre is a trademark of Sun Microsystems, Inc.
35  */
36
37 #ifndef _OBDCTL_H_
38 #define _OBDCTL_H_
39
40 #ifndef __KERNEL__
41 #include <liblustre.h>
42 #endif
43
44 #include <lustre_lib.h>
45 #include <lustre/lustre_idl.h>
46 #include <lustre_dlm.h>
47 #include <lustre_cfg.h>
48
49 /* obd.c */
50 int do_disconnect(char *func, int verbose);
51 int obd_initialize(int argc, char **argv);
52 void obd_finalize(int argc, char **argv);
53
54
55 int jt_opt_device(int argc, char **argv);
56 int jt_opt_threads(int argc, char **argv);
57 int jt_opt_net(int argc, char **argv);
58
59 int jt_obd_get_device();
60 int jt_obd_device(int argc, char **argv);
61 int jt_obd_detach(int argc, char **argv);
62 int jt_obd_cleanup(int argc, char **argv);
63 int jt_obd_no_transno(int argc, char **argv);
64 int jt_obd_set_readonly(int argc, char **argv);
65 int jt_obd_abort_recovery(int argc, char **argv);
66 int jt_obd_list(int argc, char **argv);
67 int jt_obd_create(int argc, char **argv);
68 int jt_obd_setattr(int argc, char **argv);
69 int jt_obd_test_setattr(int argc, char **argv);
70 int jt_obd_destroy(int argc, char **argv);
71 int jt_obd_getattr(int argc, char **argv);
72 int jt_obd_test_getattr(int argc, char **argv);
73 int jt_obd_test_brw(int argc, char **argv);
74 int jt_obd_lov_getconfig(int argc, char **argv);
75 int jt_obd_test_ldlm(int argc, char **argv);
76 int jt_obd_ldlm_regress_start(int argc, char **argv);
77 int jt_obd_ldlm_regress_stop(int argc, char **argv);
78 int jt_obd_activate(int argc, char **argv);
79 int jt_obd_deactivate(int argc, char **argv);
80 int jt_obd_recover(int argc, char **argv);
81 int jt_obd_mdc_lookup(int argc, char **argv);
82 int jt_get_version(int argc, char **argv);
83 int jt_cfg_dump_log(int argc, char **argv);
84
85 int jt_llog_catlist(int argc, char **argv);
86 int jt_llog_info(int argc, char **argv);
87 int jt_llog_print(int argc, char **argv);
88 int jt_llog_cancel(int argc, char **argv);
89 int jt_llog_remove(int argc, char **argv);
90 int jt_llog_check(int argc, char **argv);
91
92 int lcfg_ioctl(char * func, int dev_id, struct lustre_cfg *lcfg);
93 int lcfg_mgs_ioctl(char *func, int dev_id, struct lustre_cfg *lcfg);
94 int parse_devname(char *func, char *name);
95 char *jt_cmdname(char *func);
96
97
98 /* lustre_cfg.c */
99 int lcfg_set_devname(char *name);
100 char *lcfg_get_devname(void);
101 int jt_lcfg_device(int argc, char **argv);
102 int jt_lcfg_newdev(int argc, char **argv);
103 int jt_lcfg_attach(int argc, char **argv);
104 int jt_lcfg_setup(int argc, char **argv);
105 int jt_lcfg_add_uuid(int argc, char **argv);
106 int jt_lcfg_del_uuid(int argc, char **argv);
107 int jt_lcfg_del_mount_option(int argc, char **argv);
108 int jt_lcfg_set_timeout(int argc, char **argv);
109 int jt_lcfg_add_conn(int argc, char **argv);
110 int jt_lcfg_del_conn(int argc, char **argv);
111 int jt_lcfg_param(int argc, char **argv);
112 int jt_lcfg_mgsparam(int argc, char **argv);
113 int jt_lcfg_getparam(int argc, char **argv);
114 int jt_lcfg_setparam(int argc, char **argv);
115
116 int obd_add_uuid(char *uuid, lnet_nid_t nid);
117
118 int jt_blockdev_attach(int argc, char **argv);
119 int jt_blockdev_detach(int argc, char **argv);
120 int jt_blockdev_info(int argc, char **argv);
121
122 int jt_pool_cmd(int argc, char **argv);
123 int jt_changelog_register(int argc, char **argv);
124 int jt_changelog_deregister(int argc, char **argv);
125
126 #endif