glusterfs  8.2
About: GlusterFS is a network/cluster filesystem. The storage server (or each in a cluster) runs glusterfsd and the clients use mount command or glusterfs client to mount the exported filesystem. Release series 8.x (latest version).
  Fossies Dox: glusterfs-8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

glusterd-server-quorum.c File Reference
#include <glusterfs/common-utils.h>
#include "glusterd.h"
#include "glusterd-utils.h"
#include "glusterd-messages.h"
#include "glusterd-server-quorum.h"
#include "glusterd-store.h"
#include "glusterd-syncop.h"
#include "glusterd-op-sm.h"
Include dependency graph for glusterd-server-quorum.c:

Go to the source code of this file.


#define CEILING_POS(X)   (((X) - (int)(X)) > 0 ? (int)((X) + 1) : (int)(X))


static bool glusterd_is_get_op (xlator_t *this, glusterd_op_t op, dict_t *dict)
bool glusterd_is_quorum_validation_required (xlator_t *this, glusterd_op_t op, dict_t *dict)
int glusterd_validate_quorum (xlator_t *this, glusterd_op_t op, dict_t *dict, char **op_errstr)
bool glusterd_is_quorum_option (char *option)
bool glusterd_is_quorum_changed (dict_t *options, char *option, char *value)
static bool _is_contributing_to_quorum (gd_quorum_contrib_t contrib)
bool does_quorum_meet (int active_count, int quorum_count)
int glusterd_get_quorum_cluster_counts (xlator_t *this, int *active_count, int *quorum_count)
bool glusterd_is_volume_in_server_quorum (glusterd_volinfo_t *volinfo)
bool glusterd_is_any_volume_in_server_quorum (xlator_t *this)
bool does_gd_meet_server_quorum (xlator_t *this)
void glusterd_do_volume_quorum_action (xlator_t *this, glusterd_volinfo_t *volinfo, bool meets_quorum)
int glusterd_do_quorum_action ()
int check_quorum_for_brick_start (glusterd_volinfo_t *volinfo, bool node_quorum)

Macro Definition Documentation


#define CEILING_POS (   X)    (((X) - (int)(X)) > 0 ? (int)((X) + 1) : (int)(X))

Definition at line 19 of file glusterd-server-quorum.c.

Function Documentation

◆ _is_contributing_to_quorum()

static bool _is_contributing_to_quorum ( gd_quorum_contrib_t  contrib)

Definition at line 187 of file glusterd-server-quorum.c.

References _gf_false, _gf_true, QUORUM_DOWN, and QUORUM_UP.

Referenced by glusterd_get_quorum_cluster_counts().

◆ check_quorum_for_brick_start()

int check_quorum_for_brick_start ( glusterd_volinfo_t volinfo,
bool  node_quorum 

◆ does_gd_meet_server_quorum()

◆ does_quorum_meet()

bool does_quorum_meet ( int  active_count,
int  quorum_count 

◆ glusterd_do_quorum_action()

◆ glusterd_do_volume_quorum_action()

◆ glusterd_get_quorum_cluster_counts()

◆ glusterd_is_any_volume_in_server_quorum()

bool glusterd_is_any_volume_in_server_quorum ( xlator_t this)

◆ glusterd_is_get_op()

static bool glusterd_is_get_op ( xlator_t this,
glusterd_op_t  op,
dict_t dict 

◆ glusterd_is_quorum_changed()

◆ glusterd_is_quorum_option()

◆ glusterd_is_quorum_validation_required()

◆ glusterd_is_volume_in_server_quorum()

◆ glusterd_validate_quorum()