4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 only,
8 * as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License version 2 for more details (a copy is included
14 * in the LICENSE file that accompanied this code).
16 * You should have received a copy of the GNU General Public License
17 * version 2 along with this program; If not, see
18 * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
20 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21 * CA 95054 USA or visit www.sun.com if you need additional information or
27 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
28 * Use is subject to license terms.
30 * Copyright (c) 2012, 2014, Intel Corporation.
33 * This file is part of Lustre, http://www.lustre.org/
34 * Lustre is a trademark of Sun Microsystems, Inc.
40 #define MAX_IOC_BUFLEN 8192
43 int ptl_initialize(int argc, char **argv);
44 int jt_ptl_network(int argc, char **argv);
45 int jt_ptl_list_nids(int argc, char **argv);
46 int jt_ptl_which_nid(int argc, char **argv);
47 int jt_ptl_print_interfaces(int argc, char **argv);
48 int jt_ptl_add_interface(int argc, char **argv);
49 int jt_ptl_del_interface(int argc, char **argv);
50 int jt_ptl_print_peers(int argc, char **argv);
51 int jt_ptl_add_peer(int argc, char **argv);
52 int jt_ptl_del_peer(int argc, char **argv);
53 int jt_ptl_print_connections(int argc, char **argv);
54 int jt_ptl_disconnect(int argc, char **argv);
55 int jt_ptl_push_connection(int argc, char **argv);
56 int jt_ptl_ping(int argc, char **argv);
57 int jt_ptl_mynid(int argc, char **argv);
58 int jt_ptl_add_uuid(int argc, char **argv);
59 int jt_ptl_add_uuid_old(int argc, char **argv); /* backwards compatibility */
60 int jt_ptl_close_uuid(int argc, char **argv);
61 int jt_ptl_del_uuid(int argc, char **argv);
62 int jt_ptl_add_route(int argc, char **argv);
63 int jt_ptl_del_route(int argc, char **argv);
64 int jt_ptl_notify_router(int argc, char **argv);
65 int jt_ptl_print_routes(int argc, char **argv);
66 int jt_ptl_fail_nid(int argc, char **argv);
67 int jt_ptl_testprotocompat(int argc, char **argv);
68 int jt_ptl_drop_add(int argc, char **argv);
69 int jt_ptl_drop_del(int argc, char **argv);
70 int jt_ptl_drop_reset(int argc, char **argv);
71 int jt_ptl_drop_list(int argc, char **argv);
72 int jt_ptl_delay_add(int argc, char **argv);
73 int jt_ptl_delay_del(int argc, char **argv);
74 int jt_ptl_delay_reset(int argc, char **argv);
75 int jt_ptl_delay_list(int argc, char **argv);
78 int dbg_initialize(int argc, char **argv);
79 int jt_dbg_filter(int argc, char **argv);
80 int jt_dbg_show(int argc, char **argv);
81 int jt_dbg_list(int argc, char **argv);
82 int jt_dbg_debug_kernel(int argc, char **argv);
83 int jt_dbg_debug_daemon(int argc, char **argv);
84 int jt_dbg_debug_file(int argc, char **argv);
85 int jt_dbg_clear_debug_buf(int argc, char **argv);
86 int jt_dbg_mark_debug_buf(int argc, char **argv);
87 int jt_dbg_modules(int argc, char **argv);
90 int do_disconnect(char *func, int verbose);
91 int obd_initialize(int argc, char **argv);
92 void obd_finalize(int argc, char **argv);
95 int jt_opt_device(int argc, char **argv);
96 int jt_opt_threads(int argc, char **argv);
97 int jt_opt_net(int argc, char **argv);
99 int jt_obd_get_device();
100 int jt_obd_device(int argc, char **argv);
101 int jt_obd_detach(int argc, char **argv);
102 int jt_obd_cleanup(int argc, char **argv);
103 int jt_obd_no_transno(int argc, char **argv);
104 int jt_obd_set_readonly(int argc, char **argv);
105 int jt_obd_abort_recovery(int argc, char **argv);
106 int jt_obd_list(int argc, char **argv);
107 int jt_obd_create(int argc, char **argv);
108 int jt_obd_test_create(int argc, char **argv);
109 int jt_obd_test_mkdir(int argc, char **argv);
110 int jt_obd_test_destroy(int argc, char **argv);
111 int jt_obd_test_rmdir(int argc, char **argv);
112 int jt_obd_test_lookup(int argc, char **argv);
113 int jt_obd_test_setxattr(int argc, char **argv);
114 int jt_obd_test_md_getattr(int argc, char **argv);
116 int jt_obd_setattr(int argc, char **argv);
117 int jt_obd_test_setattr(int argc, char **argv);
118 int jt_obd_destroy(int argc, char **argv);
119 int jt_obd_getattr(int argc, char **argv);
120 int jt_obd_test_getattr(int argc, char **argv);
121 int jt_obd_test_brw(int argc, char **argv);
122 int jt_obd_lov_getconfig(int argc, char **argv);
123 int jt_obd_test_ldlm(int argc, char **argv);
124 int jt_obd_ldlm_regress_start(int argc, char **argv);
125 int jt_obd_ldlm_regress_stop(int argc, char **argv);
126 int jt_replace_nids(int arc, char **argv);
127 int jt_obd_activate(int argc, char **argv);
128 int jt_obd_deactivate(int argc, char **argv);
129 int jt_obd_recover(int argc, char **argv);
130 int jt_obd_mdc_lookup(int argc, char **argv);
131 int jt_get_version(int argc, char **argv);
132 int jt_get_obj_version(int argc, char **argv);
134 int jt_llog_catlist(int argc, char **argv);
135 int jt_llog_info(int argc, char **argv);
136 int jt_llog_print(int argc, char **argv);
137 int jt_llog_cancel(int argc, char **argv);
138 int jt_llog_remove(int argc, char **argv);
139 int jt_llog_check(int argc, char **argv);
142 int lcfg_ioctl(char * func, int dev_id, struct lustre_cfg *lcfg);
143 int lcfg_mgs_ioctl(char *func, int dev_id, struct lustre_cfg *lcfg);
144 int parse_devname(char *func, char *name);
145 char *jt_cmdname(char *func);
149 int lcfg_set_devname(char *name);
150 char *lcfg_get_devname(void);
151 int jt_lcfg_device(int argc, char **argv);
152 int jt_lcfg_newdev(int argc, char **argv);
153 int jt_lcfg_attach(int argc, char **argv);
154 int jt_lcfg_setup(int argc, char **argv);
155 int jt_lcfg_add_uuid(int argc, char **argv);
156 int jt_lcfg_del_uuid(int argc, char **argv);
157 int jt_lcfg_del_mount_option(int argc, char **argv);
158 int jt_lcfg_set_timeout(int argc, char **argv);
159 int jt_lcfg_add_conn(int argc, char **argv);
160 int jt_lcfg_del_conn(int argc, char **argv);
161 int jt_lcfg_param(int argc, char **argv);
162 int jt_lcfg_mgsparam(int argc, char **argv);
163 int jt_lcfg_getparam(int argc, char **argv);
164 int jt_lcfg_setparam(int argc, char **argv);
165 int jt_lcfg_listparam(int argc, char **argv);
167 int jt_blockdev_attach(int argc, char **argv);
168 int jt_blockdev_detach(int argc, char **argv);
169 int jt_blockdev_info(int argc, char **argv);
171 int jt_pool_cmd(int argc, char **argv);
172 int jt_nodemap_activate(int argc, char **argv);
173 int jt_nodemap_add(int argc, char **argv);
174 int jt_nodemap_del(int argc, char **argv);
175 int jt_nodemap_modify(int argc, char **argv);
176 int jt_nodemap_add_range(int argc, char **argv);
177 int jt_nodemap_test_nid(int argc, char **argv);
178 int jt_nodemap_del_range(int argc, char **argv);
179 int jt_nodemap_add_idmap(int argc, char **argv);
180 int jt_nodemap_del_idmap(int argc, char **argv);
181 int jt_nodemap_test_id(int argc, char **argv);
182 int jt_nodemap_set_fileset(int argc, char **argv);
183 int jt_nodemap_info(int argc, char **argv);
184 int jt_changelog_register(int argc, char **argv);
185 int jt_changelog_deregister(int argc, char **argv);
188 int jt_lfsck_start(int argc, char **argv);
189 int jt_lfsck_stop(int argc, char **argv);
190 int jt_lfsck_query(int argc, char **argv);