nodemanager.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | nodemanager.c (ff8fb335221e2c446b0d4cbea26be371fd2feb64) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * Copyright (C) 2004, 2005 Oracle. All rights reserved. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public 8 * License as published by the Free Software Foundation; either --- 15 unchanged lines hidden (view full) --- 24#include <linux/module.h> 25#include <linux/configfs.h> 26 27#include "tcp.h" 28#include "nodemanager.h" 29#include "heartbeat.h" 30#include "masklog.h" 31#include "sys.h" | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * Copyright (C) 2004, 2005 Oracle. All rights reserved. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public 8 * License as published by the Free Software Foundation; either --- 15 unchanged lines hidden (view full) --- 24#include <linux/module.h> 25#include <linux/configfs.h> 26 27#include "tcp.h" 28#include "nodemanager.h" 29#include "heartbeat.h" 30#include "masklog.h" 31#include "sys.h" |
32#include "ver.h" | |
33 34/* for now we operate under the assertion that there can be only one 35 * cluster active at a time. Changing this will require trickling 36 * cluster references throughout where nodes are looked up */ 37struct o2nm_cluster *o2nm_single_cluster = NULL; 38 39char *o2nm_fence_method_desc[O2NM_FENCE_METHODS] = { 40 "reset", /* O2NM_FENCE_RESET */ --- 899 unchanged lines hidden (view full) --- 940 o2net_exit(); 941 o2hb_exit(); 942} 943 944static int __init init_o2nm(void) 945{ 946 int ret = -1; 947 | 32 33/* for now we operate under the assertion that there can be only one 34 * cluster active at a time. Changing this will require trickling 35 * cluster references throughout where nodes are looked up */ 36struct o2nm_cluster *o2nm_single_cluster = NULL; 37 38char *o2nm_fence_method_desc[O2NM_FENCE_METHODS] = { 39 "reset", /* O2NM_FENCE_RESET */ --- 899 unchanged lines hidden (view full) --- 939 o2net_exit(); 940 o2hb_exit(); 941} 942 943static int __init init_o2nm(void) 944{ 945 int ret = -1; 946 |
948 cluster_print_version(); 949 | |
950 ret = o2hb_init(); 951 if (ret) 952 goto out; 953 954 ret = o2net_init(); 955 if (ret) 956 goto out_o2hb; 957 --- 21 unchanged lines hidden (view full) --- 979out_o2hb: 980 o2hb_exit(); 981out: 982 return ret; 983} 984 985MODULE_AUTHOR("Oracle"); 986MODULE_LICENSE("GPL"); | 947 ret = o2hb_init(); 948 if (ret) 949 goto out; 950 951 ret = o2net_init(); 952 if (ret) 953 goto out_o2hb; 954 --- 21 unchanged lines hidden (view full) --- 976out_o2hb: 977 o2hb_exit(); 978out: 979 return ret; 980} 981 982MODULE_AUTHOR("Oracle"); 983MODULE_LICENSE("GPL"); |
984MODULE_DESCRIPTION("OCFS2 cluster management"); |
|
987 988module_init(init_o2nm) 989module_exit(exit_o2nm) | 985 986module_init(init_o2nm) 987module_exit(exit_o2nm) |