X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Fobdctl.h;h=8ec992ef6c335e551cbc02f73a52e305838c3f53;hp=acc5c5f7db649705dbb05e831c7c4b8c0af04984;hb=76aa18132e117b2a984edc62e731a4ca9efca4e8;hpb=ccb42f2458669aaac84a661091b05a59bb781197 diff --git a/lustre/utils/obdctl.h b/lustre/utils/obdctl.h index acc5c5f..8ec992e 100644 --- a/lustre/utils/obdctl.h +++ b/lustre/utils/obdctl.h @@ -1,64 +1,128 @@ /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- * vim:expandtab:shiftwidth=8:tabstop=8: * - * Copyright (C) 2002 Cluster File Systems, Inc. + * GPL HEADER START * - * Author: Peter J. Braam - * Author: Phil Schwan - * Author: Robert Read + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * - * This file is part of Lustre, http://www.lustre.org. + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 only, + * as published by the Free Software Foundation. * - * Lustre is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public - * License as published by the Free Software Foundation. + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License version 2 for more details (a copy is included + * in the LICENSE file that accompanied this code). * - * Lustre is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License + * version 2 along with this program; If not, see + * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf * - * You should have received a copy of the GNU General Public License - * along with Lustre; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, + * CA 95054 USA or visit www.sun.com if you need additional information or + * have any questions. * + * GPL HEADER END */ +/* + * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. + * Use is subject to license terms. + */ +/* + * This file is part of Lustre, http://www.lustre.org/ + * Lustre is a trademark of Sun Microsystems, Inc. + */ + #ifndef _OBDCTL_H_ #define _OBDCTL_H_ +#ifndef __KERNEL__ +#include +#endif + +#include +#include +#include +#include + +/* obd.c */ int do_disconnect(char *func, int verbose); int obd_initialize(int argc, char **argv); -void obd_cleanup(int argc, char **argv); +void obd_finalize(int argc, char **argv); + int jt_opt_device(int argc, char **argv); int jt_opt_threads(int argc, char **argv); +int jt_opt_net(int argc, char **argv); +int jt_obd_get_device(); int jt_obd_device(int argc, char **argv); -int jt_obd_connect(int argc, char **argv); -int jt_obd_disconnect(int argc, char **argv); int jt_obd_detach(int argc, char **argv); int jt_obd_cleanup(int argc, char **argv); -int jt_obd_newdev(int argc, char **argv); +int jt_obd_no_transno(int argc, char **argv); +int jt_obd_set_readonly(int argc, char **argv); +int jt_obd_abort_recovery(int argc, char **argv); int jt_obd_list(int argc, char **argv); -int jt_obd_attach(int argc, char **argv); -int jt_obd_name2dev(int argc, char **argv); -int jt_obd_setup(int argc, char **argv); int jt_obd_create(int argc, char **argv); int jt_obd_setattr(int argc, char **argv); +int jt_obd_test_setattr(int argc, char **argv); int jt_obd_destroy(int argc, char **argv); int jt_obd_getattr(int argc, char **argv); int jt_obd_test_getattr(int argc, char **argv); int jt_obd_test_brw(int argc, char **argv); -int jt_obd_lov_setconfig(int argc, char **argv); int jt_obd_lov_getconfig(int argc, char **argv); int jt_obd_test_ldlm(int argc, char **argv); int jt_obd_ldlm_regress_start(int argc, char **argv); int jt_obd_ldlm_regress_stop(int argc, char **argv); -int jt_obd_dump_ldlm(int argc, char **argv); -int jt_obd_lov_set_osc_active(int argc, char **argv); -int jt_obd_newconn(int argc, char **argv); -int jt_obd_failconn(int argc, char **argv); +int jt_obd_activate(int argc, char **argv); +int jt_obd_deactivate(int argc, char **argv); +int jt_obd_recover(int argc, char **argv); int jt_obd_mdc_lookup(int argc, char **argv); int jt_get_version(int argc, char **argv); +int jt_cfg_dump_log(int argc, char **argv); +int jt_get_obj_version(int argc, char **argv); + +int jt_llog_catlist(int argc, char **argv); +int jt_llog_info(int argc, char **argv); +int jt_llog_print(int argc, char **argv); +int jt_llog_cancel(int argc, char **argv); +int jt_llog_remove(int argc, char **argv); +int jt_llog_check(int argc, char **argv); + +int lcfg_ioctl(char * func, int dev_id, struct lustre_cfg *lcfg); +int lcfg_mgs_ioctl(char *func, int dev_id, struct lustre_cfg *lcfg); +int parse_devname(char *func, char *name); +char *jt_cmdname(char *func); + + +/* lustre_cfg.c */ +int lcfg_set_devname(char *name); +char *lcfg_get_devname(void); +int jt_lcfg_device(int argc, char **argv); +int jt_lcfg_newdev(int argc, char **argv); +int jt_lcfg_attach(int argc, char **argv); +int jt_lcfg_setup(int argc, char **argv); +int jt_lcfg_add_uuid(int argc, char **argv); +int jt_lcfg_del_uuid(int argc, char **argv); +int jt_lcfg_del_mount_option(int argc, char **argv); +int jt_lcfg_set_timeout(int argc, char **argv); +int jt_lcfg_add_conn(int argc, char **argv); +int jt_lcfg_del_conn(int argc, char **argv); +int jt_lcfg_param(int argc, char **argv); +int jt_lcfg_mgsparam(int argc, char **argv); +int jt_lcfg_getparam(int argc, char **argv); +int jt_lcfg_setparam(int argc, char **argv); +int jt_lcfg_listparam(int argc, char **argv); + +int obd_add_uuid(char *uuid, lnet_nid_t nid); + +int jt_blockdev_attach(int argc, char **argv); +int jt_blockdev_detach(int argc, char **argv); +int jt_blockdev_info(int argc, char **argv); + +int jt_pool_cmd(int argc, char **argv); +int jt_changelog_register(int argc, char **argv); +int jt_changelog_deregister(int argc, char **argv); #endif