linux/fs/dlm/member.c

// SPDX-License-Identifier: GPL-2.0-only
/******************************************************************************
*******************************************************************************
**
**  Copyright (C) 2005-2011 Red Hat, Inc.  All rights reserved.
**
**
*******************************************************************************
******************************************************************************/

#include "dlm_internal.h"
#include "lockspace.h"
#include "member.h"
#include "recoverd.h"
#include "recover.h"
#include "rcom.h"
#include "config.h"
#include "midcomms.h"
#include "lowcomms.h"

int dlm_slots_version(const struct dlm_header *h)
{}

void dlm_slot_save(struct dlm_ls *ls, struct dlm_rcom *rc,
		   struct dlm_member *memb)
{}

void dlm_slots_copy_out(struct dlm_ls *ls, struct dlm_rcom *rc)
{}

#define SLOT_DEBUG_LINE

static void log_slots(struct dlm_ls *ls, uint32_t gen, int num_slots,
		      struct rcom_slot *ro0, struct dlm_slot *array,
		      int array_size)
{}

int dlm_slots_copy_in(struct dlm_ls *ls)
{}

/* for any nodes that do not support slots, we will not have set memb->slot
   in wait_status_all(), so memb->slot will remain -1, and we will not
   assign slots or set ls_num_slots here */

int dlm_slots_assign(struct dlm_ls *ls, int *num_slots, int *slots_size,
		     struct dlm_slot **slots_out, uint32_t *gen_out)
{}

static void add_ordered_member(struct dlm_ls *ls, struct dlm_member *new)
{}

static int add_remote_member(int nodeid)
{}

static int dlm_add_member(struct dlm_ls *ls, struct dlm_config_node *node)
{}

static struct dlm_member *find_memb(struct list_head *head, int nodeid)
{}

int dlm_is_member(struct dlm_ls *ls, int nodeid)
{}

int dlm_is_removed(struct dlm_ls *ls, int nodeid)
{}

static void clear_memb_list(struct list_head *head,
			    void (*after_del)(int nodeid))
{}

static void remove_remote_member(int nodeid)
{}

void dlm_clear_members(struct dlm_ls *ls)
{}

void dlm_clear_members_gone(struct dlm_ls *ls)
{}

static void make_member_array(struct dlm_ls *ls)
{}

/* send a status request to all members just to establish comms connections */

static int ping_members(struct dlm_ls *ls, uint64_t seq)
{}

static void dlm_lsop_recover_prep(struct dlm_ls *ls)
{}

static void dlm_lsop_recover_slot(struct dlm_ls *ls, struct dlm_member *memb)
{}

void dlm_lsop_recover_done(struct dlm_ls *ls)
{}

static struct dlm_config_node *find_config_node(struct dlm_recover *rv,
						int nodeid)
{}

int dlm_recover_members(struct dlm_ls *ls, struct dlm_recover *rv, int *neg_out)
{}

/* Userspace guarantees that dlm_ls_stop() has completed on all nodes before
   dlm_ls_start() is called on any of them to start the new recovery. */

int dlm_ls_stop(struct dlm_ls *ls)
{}

int dlm_ls_start(struct dlm_ls *ls)
{}