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)  

globals.h File Reference
Include dependency graph for globals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GF_DEFAULT_BASE_PORT   24007
 
#define GF_DEFAULT_VOLFILE_TRANSPORT   "tcp"
 
#define GF_GLOBAL_XLATOR_NAME   "global"
 
#define GD_OP_VERSION_KEY   "operating-version"
 
#define GD_MIN_OP_VERSION_KEY   "minimum-operating-version"
 
#define GD_MAX_OP_VERSION_KEY   "maximum-operating-version"
 
#define GF_PROTECT_FROM_EXTERNAL_WRITES   "trusted.glusterfs.protect.writes"
 
#define GF_AVOID_OVERWRITE   "glusterfs.avoid.overwrite"
 
#define GF_CLEAN_WRITE_PROTECTION   "glusterfs.clean.writexattr"
 
#define GD_OP_VERSION_MIN
 
#define GD_OP_VERSION_MAX
 
#define GD_OP_VERSION_3_6_0   30600 /* Op-Version for GlusterFS 3.6.0 */
 
#define GD_OP_VERSION_3_7_0   30700 /* Op-version for GlusterFS 3.7.0 */
 
#define GD_OP_VERSION_3_7_1   30701 /* Op-version for GlusterFS 3.7.1 */
 
#define GD_OP_VERSION_3_7_2   30702 /* Op-version for GlusterFS 3.7.2 */
 
#define GD_OP_VERSION_3_7_3   30703 /* Op-version for GlusterFS 3.7.3 */
 
#define GD_OP_VERSION_3_7_4   30704 /* Op-version for GlusterFS 3.7.4 */
 
#define GD_OP_VERSION_3_7_5   30705 /* Op-version for GlusterFS 3.7.5 */
 
#define GD_OP_VERSION_3_7_6   30706 /* Op-version for GlusterFS 3.7.6 */
 
#define GD_OP_VERSION_3_7_7   30707 /* Op-version for GlusterFS 3.7.7 */
 
#define GD_OP_VERSION_3_7_10   30710 /* Op-version for GlusterFS 3.7.10 */
 
#define GD_OP_VERSION_3_7_12   30712 /* Op-version for GlusterFS 3.7.12 */
 
#define GD_OP_VERSION_3_8_0   30800 /* Op-version for GlusterFS 3.8.0 */
 
#define GD_OP_VERSION_3_8_3   30803 /* Op-version for GlusterFS 3.8.3 */
 
#define GD_OP_VERSION_3_8_4   30804 /* Op-version for GlusterFS 3.8.4 */
 
#define GD_OP_VERSION_3_9_0   30900 /* Op-version for GlusterFS 3.9.0 */
 
#define GD_OP_VERSION_3_9_1   30901 /* Op-version for GlusterFS 3.9.1 */
 
#define GD_OP_VERSION_3_10_0   31000 /* Op-version for GlusterFS 3.10.0 */
 
#define GD_OP_VERSION_3_10_1   31001 /* Op-version for GlusterFS 3.10.1 */
 
#define GD_OP_VERSION_3_10_2   31002 /* Op-version for GlusterFS 3.10.2 */
 
#define GD_OP_VERSION_3_11_0   31100 /* Op-version for GlusterFS 3.11.0 */
 
#define GD_OP_VERSION_3_11_1   31101 /* Op-version for GlusterFS 3.11.1 */
 
#define GD_OP_VERSION_3_12_0   31200 /* Op-version for GlusterFS 3.12.0 */
 
#define GD_OP_VERSION_3_12_2   31202 /* Op-version for GlusterFS 3.12.2 */
 
#define GD_OP_VERSION_3_12_3   31203 /* Op-version for GlusterFS 3.12.3 */
 
#define GD_OP_VERSION_3_13_0   31300 /* Op-version for GlusterFS 3.13.0 */
 
#define GD_OP_VERSION_3_13_1   31301 /* Op-version for GlusterFS 3.13.1 */
 
#define GD_OP_VERSION_3_13_2   31302 /* Op-version for GlusterFS 3.13.2 */
 
#define GD_OP_VERSION_4_0_0   40000 /* Op-version for GlusterFS 4.0.0 */
 
#define GD_OP_VERSION_4_1_0   40100 /* Op-version for GlusterFS 4.1.0 */
 
#define GD_OP_VERSION_5_0   50000 /* Op-version for GlusterFS 5.0 */
 
#define GD_OP_VERSION_5_4   50400 /* Op-version for GlusterFS 5.4 */
 
#define GD_OP_VERSION_6_0   60000 /* Op-version for GlusterFS 6.0 */
 
#define GD_OP_VERSION_7_0   70000 /* Op-version for GlusterFS 7.0 */
 
#define GD_OP_VERSION_7_1   70100 /* Op-version for GlusterFS 7.1 */
 
#define GD_OP_VERSION_7_2   70200 /* Op-version for GlusterFS 7.2 */
 
#define GD_OP_VERSION_7_3   70300 /* Op-version for GlusterFS 7.3 */
 
#define GD_OP_VERSION_8_0   80000 /* Op-version for GlusterFS 8.0 */
 
#define GD_OP_VER_PERSISTENT_AFR_XATTRS   GD_OP_VERSION_3_6_0
 
#define THIS   (*__glusterfs_this_location())
 
#define DECLARE_OLD_THIS   xlator_t *old_THIS = THIS
 

Functions

xlator_t ** __glusterfs_this_location (void)
 
xlator_tglusterfs_this_get (void)
 
void glusterfs_this_set (xlator_t *)
 
void * syncopctx_getctx (void)
 
void * synctask_get (void)
 
void synctask_set (void *)
 
char * glusterfs_uuid_buf_get (void)
 
char * glusterfs_lkowner_buf_get (void)
 
char * glusterfs_leaseid_buf_get (void)
 
char * glusterfs_leaseid_exist (void)
 
int glusterfs_globals_init (glusterfs_ctx_t *ctx)
 
void gf_thread_needs_cleanup (void)
 
struct tvec_baseglusterfs_ctx_tw_get (glusterfs_ctx_t *ctx)
 
void glusterfs_ctx_tw_put (glusterfs_ctx_t *ctx)
 
int gf_global_mem_acct_enable_get (void)
 
int gf_global_mem_acct_enable_set (int val)
 

Variables

xlator_t global_xlator
 
struct volume_options global_xl_options []
 
const char * gf_fop_list []
 
const char * gf_upcall_list []
 

Macro Definition Documentation

◆ DECLARE_OLD_THIS

#define DECLARE_OLD_THIS   xlator_t *old_THIS = THIS

Definition at line 127 of file globals.h.

◆ GD_MAX_OP_VERSION_KEY

#define GD_MAX_OP_VERSION_KEY   "maximum-operating-version"

Definition at line 20 of file globals.h.

◆ GD_MIN_OP_VERSION_KEY

#define GD_MIN_OP_VERSION_KEY   "minimum-operating-version"

Definition at line 19 of file globals.h.

◆ GD_OP_VER_PERSISTENT_AFR_XATTRS

#define GD_OP_VER_PERSISTENT_AFR_XATTRS   GD_OP_VERSION_3_6_0

Definition at line 120 of file globals.h.

◆ GD_OP_VERSION_3_10_0

#define GD_OP_VERSION_3_10_0   31000 /* Op-version for GlusterFS 3.10.0 */

Definition at line 81 of file globals.h.

◆ GD_OP_VERSION_3_10_1

#define GD_OP_VERSION_3_10_1   31001 /* Op-version for GlusterFS 3.10.1 */

Definition at line 83 of file globals.h.

◆ GD_OP_VERSION_3_10_2

#define GD_OP_VERSION_3_10_2   31002 /* Op-version for GlusterFS 3.10.2 */

Definition at line 85 of file globals.h.

◆ GD_OP_VERSION_3_11_0

#define GD_OP_VERSION_3_11_0   31100 /* Op-version for GlusterFS 3.11.0 */

Definition at line 87 of file globals.h.

◆ GD_OP_VERSION_3_11_1

#define GD_OP_VERSION_3_11_1   31101 /* Op-version for GlusterFS 3.11.1 */

Definition at line 89 of file globals.h.

◆ GD_OP_VERSION_3_12_0

#define GD_OP_VERSION_3_12_0   31200 /* Op-version for GlusterFS 3.12.0 */

Definition at line 91 of file globals.h.

◆ GD_OP_VERSION_3_12_2

#define GD_OP_VERSION_3_12_2   31202 /* Op-version for GlusterFS 3.12.2 */

Definition at line 93 of file globals.h.

◆ GD_OP_VERSION_3_12_3

#define GD_OP_VERSION_3_12_3   31203 /* Op-version for GlusterFS 3.12.3 */

Definition at line 95 of file globals.h.

◆ GD_OP_VERSION_3_13_0

#define GD_OP_VERSION_3_13_0   31300 /* Op-version for GlusterFS 3.13.0 */

Definition at line 97 of file globals.h.

◆ GD_OP_VERSION_3_13_1

#define GD_OP_VERSION_3_13_1   31301 /* Op-version for GlusterFS 3.13.1 */

Definition at line 99 of file globals.h.

◆ GD_OP_VERSION_3_13_2

#define GD_OP_VERSION_3_13_2   31302 /* Op-version for GlusterFS 3.13.2 */

Definition at line 101 of file globals.h.

◆ GD_OP_VERSION_3_6_0

#define GD_OP_VERSION_3_6_0   30600 /* Op-Version for GlusterFS 3.6.0 */

Definition at line 49 of file globals.h.

◆ GD_OP_VERSION_3_7_0

#define GD_OP_VERSION_3_7_0   30700 /* Op-version for GlusterFS 3.7.0 */

Definition at line 51 of file globals.h.

◆ GD_OP_VERSION_3_7_1

#define GD_OP_VERSION_3_7_1   30701 /* Op-version for GlusterFS 3.7.1 */

Definition at line 53 of file globals.h.

◆ GD_OP_VERSION_3_7_10

#define GD_OP_VERSION_3_7_10   30710 /* Op-version for GlusterFS 3.7.10 */

Definition at line 67 of file globals.h.

◆ GD_OP_VERSION_3_7_12

#define GD_OP_VERSION_3_7_12   30712 /* Op-version for GlusterFS 3.7.12 */

Definition at line 69 of file globals.h.

◆ GD_OP_VERSION_3_7_2

#define GD_OP_VERSION_3_7_2   30702 /* Op-version for GlusterFS 3.7.2 */

Definition at line 55 of file globals.h.

◆ GD_OP_VERSION_3_7_3

#define GD_OP_VERSION_3_7_3   30703 /* Op-version for GlusterFS 3.7.3 */

Definition at line 57 of file globals.h.

◆ GD_OP_VERSION_3_7_4

#define GD_OP_VERSION_3_7_4   30704 /* Op-version for GlusterFS 3.7.4 */

Definition at line 59 of file globals.h.

◆ GD_OP_VERSION_3_7_5

#define GD_OP_VERSION_3_7_5   30705 /* Op-version for GlusterFS 3.7.5 */

Definition at line 61 of file globals.h.

◆ GD_OP_VERSION_3_7_6

#define GD_OP_VERSION_3_7_6   30706 /* Op-version for GlusterFS 3.7.6 */

Definition at line 63 of file globals.h.

◆ GD_OP_VERSION_3_7_7

#define GD_OP_VERSION_3_7_7   30707 /* Op-version for GlusterFS 3.7.7 */

Definition at line 65 of file globals.h.

◆ GD_OP_VERSION_3_8_0

#define GD_OP_VERSION_3_8_0   30800 /* Op-version for GlusterFS 3.8.0 */

Definition at line 71 of file globals.h.

◆ GD_OP_VERSION_3_8_3

#define GD_OP_VERSION_3_8_3   30803 /* Op-version for GlusterFS 3.8.3 */

Definition at line 73 of file globals.h.

◆ GD_OP_VERSION_3_8_4

#define GD_OP_VERSION_3_8_4   30804 /* Op-version for GlusterFS 3.8.4 */

Definition at line 75 of file globals.h.

◆ GD_OP_VERSION_3_9_0

#define GD_OP_VERSION_3_9_0   30900 /* Op-version for GlusterFS 3.9.0 */

Definition at line 77 of file globals.h.

◆ GD_OP_VERSION_3_9_1

#define GD_OP_VERSION_3_9_1   30901 /* Op-version for GlusterFS 3.9.1 */

Definition at line 79 of file globals.h.

◆ GD_OP_VERSION_4_0_0

#define GD_OP_VERSION_4_0_0   40000 /* Op-version for GlusterFS 4.0.0 */

Definition at line 103 of file globals.h.

◆ GD_OP_VERSION_4_1_0

#define GD_OP_VERSION_4_1_0   40100 /* Op-version for GlusterFS 4.1.0 */

Definition at line 105 of file globals.h.

◆ GD_OP_VERSION_5_0

#define GD_OP_VERSION_5_0   50000 /* Op-version for GlusterFS 5.0 */

Definition at line 107 of file globals.h.

◆ GD_OP_VERSION_5_4

#define GD_OP_VERSION_5_4   50400 /* Op-version for GlusterFS 5.4 */

Definition at line 109 of file globals.h.

◆ GD_OP_VERSION_6_0

#define GD_OP_VERSION_6_0   60000 /* Op-version for GlusterFS 6.0 */

Definition at line 111 of file globals.h.

◆ GD_OP_VERSION_7_0

#define GD_OP_VERSION_7_0   70000 /* Op-version for GlusterFS 7.0 */

Definition at line 113 of file globals.h.

◆ GD_OP_VERSION_7_1

#define GD_OP_VERSION_7_1   70100 /* Op-version for GlusterFS 7.1 */

Definition at line 114 of file globals.h.

◆ GD_OP_VERSION_7_2

#define GD_OP_VERSION_7_2   70200 /* Op-version for GlusterFS 7.2 */

Definition at line 115 of file globals.h.

◆ GD_OP_VERSION_7_3

#define GD_OP_VERSION_7_3   70300 /* Op-version for GlusterFS 7.3 */

Definition at line 116 of file globals.h.

◆ GD_OP_VERSION_8_0

#define GD_OP_VERSION_8_0   80000 /* Op-version for GlusterFS 8.0 */

Definition at line 118 of file globals.h.

◆ GD_OP_VERSION_KEY

#define GD_OP_VERSION_KEY   "operating-version"

Definition at line 18 of file globals.h.

◆ GD_OP_VERSION_MAX

#define GD_OP_VERSION_MAX
Value:
GD_OP_VERSION_8_0 /* MAX VERSION is the maximum \
count in VME table, should \
keep changing with \
introduction of newer \
versions */

Definition at line 46 of file globals.h.

◆ GD_OP_VERSION_MIN

#define GD_OP_VERSION_MIN
Value:
1 /* MIN is the fresh start op-version, mostly \
should not change */

Definition at line 44 of file globals.h.

◆ GF_AVOID_OVERWRITE

#define GF_AVOID_OVERWRITE   "glusterfs.avoid.overwrite"

Definition at line 23 of file globals.h.

◆ GF_CLEAN_WRITE_PROTECTION

#define GF_CLEAN_WRITE_PROTECTION   "glusterfs.clean.writexattr"

Definition at line 24 of file globals.h.

◆ GF_DEFAULT_BASE_PORT

#define GF_DEFAULT_BASE_PORT   24007

Definition at line 14 of file globals.h.

◆ GF_DEFAULT_VOLFILE_TRANSPORT

#define GF_DEFAULT_VOLFILE_TRANSPORT   "tcp"

Definition at line 15 of file globals.h.

◆ GF_GLOBAL_XLATOR_NAME

#define GF_GLOBAL_XLATOR_NAME   "global"

Definition at line 17 of file globals.h.

◆ GF_PROTECT_FROM_EXTERNAL_WRITES

#define GF_PROTECT_FROM_EXTERNAL_WRITES   "trusted.glusterfs.protect.writes"

Definition at line 22 of file globals.h.

◆ THIS

#define THIS   (*__glusterfs_this_location())

Definition at line 126 of file globals.h.

Function Documentation

◆ __glusterfs_this_location()

xlator_t** __glusterfs_this_location ( void  )

Definition at line 226 of file globals.c.

References global_xlator, and thread_xlator.

Referenced by glusterfs_this_get().

◆ gf_global_mem_acct_enable_get()

int gf_global_mem_acct_enable_get ( void  )

Definition at line 111 of file globals.c.

References gf_global_mem_acct_enable.

Referenced by glusterfs_ctx_new().

◆ gf_global_mem_acct_enable_set()

int gf_global_mem_acct_enable_set ( int  val)

Definition at line 117 of file globals.c.

Referenced by gf_check_and_set_mem_acct().

◆ gf_thread_needs_cleanup()

void gf_thread_needs_cleanup ( void  )

Definition at line 321 of file globals.c.

References free_key.

Referenced by mem_get_pool_list(), and syncopctx_setfsgroups().

◆ glusterfs_ctx_tw_get()

◆ glusterfs_ctx_tw_put()

void glusterfs_ctx_tw_put ( glusterfs_ctx_t ctx)

Definition at line 90 of file ctx.c.

References GF_REF_PUT, and _glusterfs_ctx::tw.

Referenced by fini(), and nlc_fini().

◆ glusterfs_globals_init()

◆ glusterfs_leaseid_buf_get()

char* glusterfs_leaseid_buf_get ( void  )

Definition at line 291 of file globals.c.

References thread_leaseid, and thread_leaseid_buf.

Referenced by gf_leaseid_get(), and leaseid_utoa().

◆ glusterfs_leaseid_exist()

char* glusterfs_leaseid_exist ( void  )

Definition at line 305 of file globals.c.

References thread_leaseid.

Referenced by gf_existing_leaseid().

◆ glusterfs_lkowner_buf_get()

char* glusterfs_lkowner_buf_get ( void  )

Definition at line 283 of file globals.c.

References thread_lkowner_buf.

Referenced by lkowner_utoa().

◆ glusterfs_this_get()

xlator_t* glusterfs_this_get ( void  )

Definition at line 239 of file globals.c.

References __glusterfs_this_location().

◆ glusterfs_this_set()

void glusterfs_this_set ( xlator_t this)

Definition at line 245 of file globals.c.

References thread_xlator.

Referenced by mount3udp_thread(), and nlm4_establish_callback().

◆ glusterfs_uuid_buf_get()

char* glusterfs_uuid_buf_get ( void  )

Definition at line 275 of file globals.c.

References thread_uuid_buf.

Referenced by uuid_utoa().

◆ syncopctx_getctx()

void* syncopctx_getctx ( void  )

◆ synctask_get()

◆ synctask_set()

void synctask_set ( void *  synctask)

Definition at line 267 of file globals.c.

References thread_synctask.

Referenced by synctask_switchto().

Variable Documentation

◆ gf_fop_list

◆ gf_upcall_list

const char* gf_upcall_list[]
extern

◆ global_xl_options

struct volume_options global_xl_options[]
extern

Definition at line 179 of file globals.c.

Referenced by glusterfs_this_init(), and xlator_set_type().

◆ global_xlator

xlator_t global_xlator
extern

Definition at line 96 of file globals.c.

GD_OP_VERSION_8_0
#define GD_OP_VERSION_8_0
Definition: globals.h:118