1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:
6 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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.
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).
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
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
29 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
30 * Use is subject to license terms.
33 * This file is part of Lustre, http://www.lustre.org/
34 * Lustre is a trademark of Sun Microsystems, Inc.
41 #include <liblustre.h>
44 #include <lustre_lib.h>
45 #include <lustre/lustre_idl.h>
46 #include <lustre_dlm.h>
47 #include <lustre_cfg.h>
50 int do_disconnect(char *func, int verbose);
51 int obd_initialize(int argc, char **argv);
52 void obd_finalize(int argc, char **argv);
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);
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 int jt_get_obj_version(int argc, char **argv);
86 int jt_llog_catlist(int argc, char **argv);
87 int jt_llog_info(int argc, char **argv);
88 int jt_llog_print(int argc, char **argv);
89 int jt_llog_cancel(int argc, char **argv);
90 int jt_llog_remove(int argc, char **argv);
91 int jt_llog_check(int argc, char **argv);
93 int lcfg_ioctl(char * func, int dev_id, struct lustre_cfg *lcfg);
94 int lcfg_mgs_ioctl(char *func, int dev_id, struct lustre_cfg *lcfg);
95 int parse_devname(char *func, char *name);
96 char *jt_cmdname(char *func);
100 int lcfg_set_devname(char *name);
101 char *lcfg_get_devname(void);
102 int jt_lcfg_device(int argc, char **argv);
103 int jt_lcfg_newdev(int argc, char **argv);
104 int jt_lcfg_attach(int argc, char **argv);
105 int jt_lcfg_setup(int argc, char **argv);
106 int jt_lcfg_add_uuid(int argc, char **argv);
107 int jt_lcfg_del_uuid(int argc, char **argv);
108 int jt_lcfg_del_mount_option(int argc, char **argv);
109 int jt_lcfg_set_timeout(int argc, char **argv);
110 int jt_lcfg_add_conn(int argc, char **argv);
111 int jt_lcfg_del_conn(int argc, char **argv);
112 int jt_lcfg_param(int argc, char **argv);
113 int jt_lcfg_mgsparam(int argc, char **argv);
114 int jt_lcfg_getparam(int argc, char **argv);
115 int jt_lcfg_setparam(int argc, char **argv);
116 int jt_lcfg_listparam(int argc, char **argv);
118 int obd_add_uuid(char *uuid, lnet_nid_t nid);
120 int jt_blockdev_attach(int argc, char **argv);
121 int jt_blockdev_detach(int argc, char **argv);
122 int jt_blockdev_info(int argc, char **argv);
124 int jt_pool_cmd(int argc, char **argv);