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)  

dict.h File Reference
#include <inttypes.h>
#include <sys/uio.h>
#include <pthread.h>
#include "glusterfs/common-utils.h"
Include dependency graph for dict.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _data
 
struct  _data_pair
 
struct  _dict
 

Macros

#define dict_set_sizen(this, key, value)   dict_setn(this, key, SLEN(key), value)
 
#define dict_add_sizen(this, key, value)   dict_addn(this, key, SLEN(key), value)
 
#define dict_get_with_ref_sizen(this, key, value)    dict_get_with_refn(this, key, SLEN(key), value)
 
#define dict_get_sizen(this, key)   dict_getn(this, key, SLEN(key))
 
#define dict_del_sizen(this, key)   dict_deln(this, key, SLEN(key))
 
#define dict_set_str_sizen(this, key, str)    dict_set_strn(this, key, SLEN(key), str)
 
#define dict_set_sizen_str_sizen(this, key, str)    dict_set_nstrn(this, key, SLEN(key), str, SLEN(str))
 
#define dict_set_dynstr_sizen(this, key, str)    dict_set_dynstrn(this, key, SLEN(key), str)
 
#define dict_get_str_sizen(this, key, str)    dict_get_strn(this, key, SLEN(key), str)
 
#define dict_get_int32_sizen(this, key, val)    dict_get_int32n(this, key, SLEN(key), val)
 
#define dict_set_int32_sizen(this, key, val)    dict_set_int32n(this, key, SLEN(key), val)
 
#define GF_PROTOCOL_DICT_SERIALIZE(this, from_dict, to, len, ope, labl)
 
#define GF_PROTOCOL_DICT_UNSERIALIZE(xl, to, buff, len, ret, ope, labl)
 
#define dict_foreach_inline(d, c)   for (c = d->members_list; c; c = c->next)
 
#define DICT_KEY_VALUE_MAX_SIZE   1048576
 
#define DICT_MAX_FLAGS   256
 
#define DICT_FLAG_SET   1
 
#define DICT_FLAG_CLEAR   0
 
#define DICT_HDR_LEN   4
 
#define DICT_DATA_HDR_KEY_LEN   4
 
#define DICT_DATA_HDR_VAL_LEN   4
 

Typedefs

typedef struct _data data_t
 
typedef struct _dict dict_t
 
typedef struct _data_pair data_pair_t
 
typedef bool(* dict_match_t) (dict_t *d, char *k, data_t *v, void *data)
 

Functions

int32_t is_data_equal (data_t *one, data_t *two)
 
void data_destroy (data_t *data)
 
int32_t dict_set (dict_t *this, char *key, data_t *value)
 
int32_t dict_setn (dict_t *this, char *key, const int keylen, data_t *value)
 
int32_t dict_add (dict_t *this, char *key, data_t *value)
 
int32_t dict_addn (dict_t *this, char *key, const int keylen, data_t *value)
 
int dict_get_with_ref (dict_t *this, char *key, data_t **data)
 
int dict_get_with_refn (dict_t *this, char *key, const int keylen, data_t **data)
 
data_tdict_get (dict_t *this, char *key)
 
data_tdict_getn (dict_t *this, char *key, const int keylen)
 
void dict_del (dict_t *this, char *key)
 
void dict_deln (dict_t *this, char *key, const int keylen)
 
int dict_reset (dict_t *dict)
 
int dict_key_count (dict_t *this)
 
int32_t dict_serialized_length (dict_t *dict)
 
int32_t dict_serialize (dict_t *dict, char *buf)
 
int32_t dict_unserialize (char *buf, int32_t size, dict_t **fill)
 
int32_t dict_allocate_and_serialize (dict_t *this, char **buf, u_int *length)
 
void dict_unref (dict_t *dict)
 
dict_tdict_ref (dict_t *dict)
 
data_tdata_ref (data_t *data)
 
void data_unref (data_t *data)
 
int32_t dict_lookup (dict_t *this, char *key, data_t **data)
 
data_tint_to_data (int64_t value)
 
data_tstr_to_data (char *value)
 
data_tstrn_to_data (char *value, const int vallen)
 
data_tdata_from_dynptr (void *value, int32_t len)
 
data_tbin_to_data (void *value, int32_t len)
 
data_tstatic_str_to_data (char *value)
 
data_tstatic_bin_to_data (void *value)
 
int64_t data_to_int64 (data_t *data)
 
int32_t data_to_int32 (data_t *data)
 
int16_t data_to_int16 (data_t *data)
 
int8_t data_to_int8 (data_t *data)
 
uint64_t data_to_uint64 (data_t *data)
 
uint32_t data_to_uint32 (data_t *data)
 
uint16_t data_to_uint16 (data_t *data)
 
uint8_t data_to_uint8 (data_t *data)
 
data_tdata_from_int64 (int64_t value)
 
data_tdata_from_int32 (int32_t value)
 
data_tdata_from_int16 (int16_t value)
 
data_tdata_from_int8 (int8_t value)
 
data_tdata_from_uint64 (uint64_t value)
 
data_tdata_from_uint32 (uint32_t value)
 
data_tdata_from_uint16 (uint16_t value)
 
char * data_to_str (data_t *data)
 
void * data_to_bin (data_t *data)
 
void * data_to_ptr (data_t *data)
 
data_tdata_copy (data_t *old)
 
struct iattdata_to_iatt (data_t *data, char *key)
 
int dict_foreach (dict_t *this, int(*fn)(dict_t *this, char *key, data_t *value, void *data), void *data)
 
int dict_foreach_fnmatch (dict_t *dict, char *pattern, int(*fn)(dict_t *this, char *key, data_t *value, void *data), void *data)
 
int dict_foreach_match (dict_t *dict, bool(*match)(dict_t *this, char *key, data_t *value, void *mdata), void *match_data, int(*action)(dict_t *this, char *key, data_t *value, void *adata), void *action_data)
 
int dict_null_foreach_fn (dict_t *d, char *k, data_t *v, void *tmp)
 
int dict_remove_foreach_fn (dict_t *d, char *k, data_t *v, void *tmp)
 
dict_tdict_copy (dict_t *this, dict_t *new)
 
int dict_keys_join (void *value, int size, dict_t *dict, int(*filter_fn)(char *key))
 
dict_tdict_new (void)
 
dict_tdict_copy_with_ref (dict_t *this, dict_t *new)
 
int dict_get_int8 (dict_t *this, char *key, int8_t *val)
 
int dict_set_int8 (dict_t *this, char *key, int8_t val)
 
int dict_get_int16 (dict_t *this, char *key, int16_t *val)
 
int dict_set_int16 (dict_t *this, char *key, int16_t val)
 
int dict_get_int32 (dict_t *this, char *key, int32_t *val)
 
int dict_get_int32n (dict_t *this, char *key, const int keylen, int32_t *val)
 
int dict_set_int32 (dict_t *this, char *key, int32_t val)
 
int dict_set_int32n (dict_t *this, char *key, const int keylen, int32_t val)
 
int dict_get_int64 (dict_t *this, char *key, int64_t *val)
 
int dict_set_int64 (dict_t *this, char *key, int64_t val)
 
int dict_get_uint16 (dict_t *this, char *key, uint16_t *val)
 
int dict_set_uint16 (dict_t *this, char *key, uint16_t val)
 
int dict_get_uint32 (dict_t *this, char *key, uint32_t *val)
 
int dict_set_uint32 (dict_t *this, char *key, uint32_t val)
 
int dict_get_uint64 (dict_t *this, char *key, uint64_t *val)
 
int dict_set_uint64 (dict_t *this, char *key, uint64_t val)
 
int dict_check_flag (dict_t *this, char *key, int flag)
 
int dict_set_flag (dict_t *this, char *key, int flag)
 
int dict_clear_flag (dict_t *this, char *key, int flag)
 
int dict_get_double (dict_t *this, char *key, double *val)
 
int dict_set_double (dict_t *this, char *key, double val)
 
int dict_set_static_ptr (dict_t *this, char *key, void *ptr)
 
int dict_get_ptr (dict_t *this, char *key, void **ptr)
 
int dict_get_ptr_and_len (dict_t *this, char *key, void **ptr, int *len)
 
int dict_set_dynptr (dict_t *this, char *key, void *ptr, size_t size)
 
int dict_get_bin (dict_t *this, char *key, void **ptr)
 
int dict_set_bin (dict_t *this, char *key, void *ptr, size_t size)
 
int dict_set_static_bin (dict_t *this, char *key, void *ptr, size_t size)
 
int dict_set_option (dict_t *this, char *key, char *str)
 
int dict_set_str (dict_t *this, char *key, char *str)
 
int dict_set_strn (dict_t *this, char *key, const int keylen, char *str)
 
int dict_set_nstrn (dict_t *this, char *key, const int keylen, char *str, const int vallen)
 
int dict_set_dynstr (dict_t *this, char *key, char *str)
 
int dict_set_dynstrn (dict_t *this, char *key, const int keylen, char *str)
 
int dict_set_dynstr_with_alloc (dict_t *this, char *key, const char *str)
 
int dict_add_dynstr_with_alloc (dict_t *this, char *key, char *str)
 
int dict_get_str (dict_t *this, char *key, char **str)
 
int dict_get_strn (dict_t *this, char *key, const int keylen, char **str)
 
int dict_get_str_boolean (dict_t *this, char *key, int default_val)
 
int dict_rename_key (dict_t *this, char *key, char *replace_key)
 
int dict_serialize_value_with_delim (dict_t *this, char *buf, int32_t *serz_len, char delimiter)
 
int dict_set_gfuuid (dict_t *this, char *key, uuid_t uuid, bool is_static)
 
int dict_get_gfuuid (dict_t *this, char *key, uuid_t *uuid)
 
int dict_set_iatt (dict_t *this, char *key, struct iatt *iatt, bool is_static)
 
int dict_get_iatt (dict_t *this, char *key, struct iatt *iatt)
 
int dict_set_mdata (dict_t *this, char *key, struct mdata_iatt *mdata, bool is_static)
 
int dict_get_mdata (dict_t *this, char *key, struct mdata_iatt *mdata)
 
void dict_dump_to_statedump (dict_t *dict, char *dict_name, char *domain)
 
void dict_dump_to_log (dict_t *dict)
 
int dict_dump_to_str (dict_t *dict, char *dump, int dumpsize, char *format)
 
bool dict_match_everything (dict_t *d, char *k, data_t *v, void *data)
 
dict_tdict_for_key_value (const char *name, const char *value, size_t size, bool is_static)
 
bool are_dicts_equal (dict_t *one, dict_t *two, bool(*match)(dict_t *d, char *k, data_t *v, void *data), bool(*value_ignore)(char *k))
 
int dict_has_key_from_array (dict_t *dict, char **strings, bool *result)
 
int dict_serialized_length_lk (dict_t *this)
 

Macro Definition Documentation

◆ dict_add_sizen

#define dict_add_sizen (   this,
  key,
  value 
)    dict_addn(this, key, SLEN(key), value)

Definition at line 26 of file dict.h.

◆ DICT_DATA_HDR_KEY_LEN

#define DICT_DATA_HDR_KEY_LEN   4

Definition at line 94 of file dict.h.

◆ DICT_DATA_HDR_VAL_LEN

#define DICT_DATA_HDR_VAL_LEN   4

Definition at line 95 of file dict.h.

◆ dict_del_sizen

#define dict_del_sizen (   this,
  key 
)    dict_deln(this, key, SLEN(key))

Definition at line 33 of file dict.h.

◆ DICT_FLAG_CLEAR

#define DICT_FLAG_CLEAR   0

Definition at line 92 of file dict.h.

◆ DICT_FLAG_SET

#define DICT_FLAG_SET   1

Definition at line 91 of file dict.h.

◆ dict_foreach_inline

#define dict_foreach_inline (   d,
 
)    for (c = d->members_list; c; c = c->next)

Definition at line 87 of file dict.h.

◆ dict_get_int32_sizen

#define dict_get_int32_sizen (   this,
  key,
  val 
)     dict_get_int32n(this, key, SLEN(key), val)

Definition at line 47 of file dict.h.

◆ dict_get_sizen

#define dict_get_sizen (   this,
  key 
)    dict_getn(this, key, SLEN(key))

Definition at line 31 of file dict.h.

◆ dict_get_str_sizen

#define dict_get_str_sizen (   this,
  key,
  str 
)     dict_get_strn(this, key, SLEN(key), str)

Definition at line 44 of file dict.h.

◆ dict_get_with_ref_sizen

#define dict_get_with_ref_sizen (   this,
  key,
  value 
)     dict_get_with_refn(this, key, SLEN(key), value)

Definition at line 28 of file dict.h.

◆ DICT_HDR_LEN

#define DICT_HDR_LEN   4

Definition at line 93 of file dict.h.

◆ DICT_KEY_VALUE_MAX_SIZE

#define DICT_KEY_VALUE_MAX_SIZE   1048576

Definition at line 89 of file dict.h.

◆ DICT_MAX_FLAGS

#define DICT_MAX_FLAGS   256

Definition at line 90 of file dict.h.

◆ dict_set_dynstr_sizen

#define dict_set_dynstr_sizen (   this,
  key,
  str 
)     dict_set_dynstrn(this, key, SLEN(key), str)

Definition at line 41 of file dict.h.

◆ dict_set_int32_sizen

#define dict_set_int32_sizen (   this,
  key,
  val 
)     dict_set_int32n(this, key, SLEN(key), val)

Definition at line 50 of file dict.h.

◆ dict_set_sizen

#define dict_set_sizen (   this,
  key,
  value 
)    dict_setn(this, key, SLEN(key), value)

Definition at line 24 of file dict.h.

◆ dict_set_sizen_str_sizen

#define dict_set_sizen_str_sizen (   this,
  key,
  str 
)     dict_set_nstrn(this, key, SLEN(key), str, SLEN(str))

Definition at line 38 of file dict.h.

◆ dict_set_str_sizen

#define dict_set_str_sizen (   this,
  key,
  str 
)     dict_set_strn(this, key, SLEN(key), str)

Definition at line 35 of file dict.h.

◆ GF_PROTOCOL_DICT_SERIALIZE

#define GF_PROTOCOL_DICT_SERIALIZE (   this,
  from_dict,
  to,
  len,
  ope,
  labl 
)
Value:
do { \
int _ret = 0; \
\
if (!from_dict) \
break; \
\
_ret = dict_allocate_and_serialize(from_dict, to, &len); \
if (_ret < 0) { \
"failed to get serialized dict (%s)", (#from_dict)); \
ope = EINVAL; \
goto labl; \
} \
} while (0)

Definition at line 53 of file dict.h.

◆ GF_PROTOCOL_DICT_UNSERIALIZE

#define GF_PROTOCOL_DICT_UNSERIALIZE (   xl,
  to,
  buff,
  len,
  ret,
  ope,
  labl 
)
Value:
do { \
if (!len) \
break; \
to = dict_new(); \
GF_VALIDATE_OR_GOTO(xl->name, to, labl); \
\
ret = dict_unserialize(buff, len, &to); \
if (ret < 0) { \
"failed to unserialize dictionary (%s)", (#to)); \
\
ope = EINVAL; \
goto labl; \
} \
\
} while (0)

Definition at line 69 of file dict.h.

Typedef Documentation

◆ data_pair_t

typedef struct _data_pair data_pair_t

Definition at line 1 of file dict.h.

◆ data_t

typedef struct _data data_t

Definition at line 1 of file dict.h.

◆ dict_match_t

typedef bool(* dict_match_t) (dict_t *d, char *k, data_t *v, void *data)

Definition at line 127 of file dict.h.

◆ dict_t

typedef struct _dict dict_t

Definition at line 1 of file dict.h.

Function Documentation

◆ are_dicts_equal()

bool are_dicts_equal ( dict_t one,
dict_t two,
bool(*)(dict_t *d, char *k, data_t *v, void *data)  match,
bool(*)(char *k)  value_ignore 
)

◆ bin_to_data()

◆ data_copy()

◆ data_destroy()

◆ data_from_dynptr()

data_t* data_from_dynptr ( void *  value,
int32_t  len 
)

Definition at line 1055 of file dict.c.

References _data::data, _data::data_type, get_new_data(), GF_DATA_TYPE_PTR, and _data::len.

Referenced by _dict_modify_flag(), dict_set_dynptr(), and init().

◆ data_from_int16()

data_t* data_from_int16 ( int16_t  value)

◆ data_from_int32()

data_t* data_from_int32 ( int32_t  value)

◆ data_from_int64()

data_t* data_from_int64 ( int64_t  value)

◆ data_from_int8()

data_t* data_from_int8 ( int8_t  value)

◆ data_from_uint16()

data_t* data_from_uint16 ( uint16_t  value)

◆ data_from_uint32()

data_t* data_from_uint32 ( uint32_t  value)

◆ data_from_uint64()

data_t* data_from_uint64 ( uint64_t  value)

◆ data_ref()

◆ data_to_bin()

void* data_to_bin ( data_t data)

◆ data_to_iatt()

struct iatt* data_to_iatt ( data_t data,
char *  key 
)

◆ data_to_int16()

int16_t data_to_int16 ( data_t data)

◆ data_to_int32()

int32_t data_to_int32 ( data_t data)

◆ data_to_int64()

int64_t data_to_int64 ( data_t data)

Definition at line 1104 of file dict.c.

References _data::data, GF_DATA_TYPE_INT, and VALIDATE_DATA_AND_LOG.

◆ data_to_int8()

int8_t data_to_int8 ( data_t data)

◆ data_to_ptr()

void* data_to_ptr ( data_t data)

◆ data_to_str()

◆ data_to_uint16()

◆ data_to_uint32()

uint32_t data_to_uint32 ( data_t data)

Definition at line 1172 of file dict.c.

References _data::data, GF_DATA_TYPE_UINT, and VALIDATE_DATA_AND_LOG.

Referenced by ec_dict_data_max32().

◆ data_to_uint64()

uint64_t data_to_uint64 ( data_t data)

Definition at line 1164 of file dict.c.

References _data::data, GF_DATA_TYPE_UINT, and VALIDATE_DATA_AND_LOG.

Referenced by _posix_xattr_get_set(), and ec_dict_data_max64().

◆ data_to_uint8()

uint8_t data_to_uint8 ( data_t data)

◆ data_unref()

◆ dict_add()

int32_t dict_add ( dict_t this,
char *  key,
data_t value 
)

Definition at line 510 of file dict.c.

References dict_addn().

Referenced by dht_selfheal_dir_xattr_persubvol(), and dict_add_dynstr_with_alloc().

◆ dict_add_dynstr_with_alloc()

int dict_add_dynstr_with_alloc ( dict_t this,
char *  key,
char *  str 
)

Definition at line 2534 of file dict.c.

References data_destroy(), data_from_dynstr(), dict_add(), GF_FREE, gf_strdup(), and out.

Referenced by glusterd_status_volume_client_list().

◆ dict_addn()

int32_t dict_addn ( dict_t this,
char *  key,
const int  keylen,
data_t value 
)

Definition at line 519 of file dict.c.

References dict_set_lk(), GF_LOG_WARNING, gf_msg_callingfn, LG_MSG_INVALID_ARG, LOCK, lock, UNLOCK, and XXH64().

Referenced by dict_add(), and dict_unserialize().

◆ dict_allocate_and_serialize()

int32_t dict_allocate_and_serialize ( dict_t this,
char **  buf,
u_int *  length 
)

dict_allocate_and_serialize - serialize a dictionary into an allocated buffer

@this: dict to serialize @buf: pointer to pointer to character. The allocated buffer is stored in this pointer. The buffer has to be freed by the caller.

Returns
: success: 0 failure: -errno

Definition at line 3218 of file dict.c.

References dict_serialize_lk(), dict_serialized_length_lk(), gf_common_mt_char, GF_FREE, GF_MALLOC, gf_msg_debug, LOCK, lock, out, and UNLOCK.

Referenced by __glusterd_handle_cli_list_volume(), __glusterd_handle_cli_uuid_get(), __glusterd_send_svc_configure_req(), __server_get_volume_info(), __server_getspec(), afr_fgetxattr_lockinfo_cbk(), afr_getxattr_lockinfo_cbk(), cli_quotad_getlimit(), cli_to_glusterd(), client_setvolume(), ec_dict_data_merge(), gd_mgmt_v3_brick_op_req(), gd_mgmt_v3_commit_req(), gd_mgmt_v3_lock(), gd_mgmt_v3_post_validate_req(), gd_mgmt_v3_pre_validate_req(), gd_mgmt_v3_unlock(), gd_syncop_mgmt_commit_op(), gd_syncop_mgmt_stage_op(), gd_syncop_mgmt_v3_lock(), gd_syncop_mgmt_v3_unlock(), gf_cli_get_volume(), gf_cli_getspec(), gf_cli_mount(), gf_cli_rename_volume(), glfs_get_volume_info_rpc(), glfs_volfile_fetch(), glusterd_brick_op_build_payload(), glusterd_commit_op(), glusterd_compare_friend_data(), glusterd_fsm_log_send_resp(), glusterd_get_state(), glusterd_get_volume_opts(), glusterd_get_volumes(), glusterd_list_friends(), glusterd_mgmt_v3_brick_op_send_resp(), glusterd_mgmt_v3_commit_send_resp(), glusterd_mgmt_v3_lock_peers(), glusterd_mgmt_v3_post_validate_send_resp(), glusterd_mgmt_v3_pre_validate_send_resp(), glusterd_mgmt_v3_unlock_peers(), glusterd_node_op_build_payload(), glusterd_op_commit_send_resp(), glusterd_op_send_cli_response(), glusterd_op_stage_send_resp(), glusterd_print_client_details(), glusterd_rpc_friend_add(), glusterd_rpc_friend_update(), glusterd_snapshot_get_volnames_uuids(), glusterd_stage_op(), glusterfs_handle_brick_status(), glusterfs_handle_nfs_profile(), glusterfs_handle_node_status(), glusterfs_rebalance_event_notify(), glusterfs_terminate_response_send(), glusterfs_translator_info_response_send(), glusterfs_volfile_fetch_one(), glusterfs_xlator_op_response_send(), pl_fgetxattr_handle_lockinfo(), serialize_rsp_direntp(), server_setvolume(), and svs_get_snapshot_list().

◆ dict_check_flag()

int dict_check_flag ( dict_t this,
char *  key,
int  flag 
)

Definition at line 2045 of file dict.c.

References BIT_VALUE(), _data::data, data_unref(), and dict_get_with_ref().

Referenced by should_quota_enforce().

◆ dict_clear_flag()

int dict_clear_flag ( dict_t this,
char *  key,
int  flag 
)

Definition at line 2208 of file dict.c.

References _dict_modify_flag(), and DICT_FLAG_CLEAR.

◆ dict_copy()

◆ dict_copy_with_ref()

◆ dict_del()

void dict_del ( dict_t this,
char *  key 
)

Definition at line 602 of file dict.c.

References dict_deln(), GF_LOG_WARNING, gf_msg_callingfn, and LG_MSG_INVALID_ARG.

Referenced by __deleted_entries_free_walk(), __exp_dict_free_walk(), __mountdict_remove(), __nge_free_walk(), __ngf_free_walk(), __ngh_free_walk(), _delete_auth_opt(), _delete_reconfig_opt(), _exp_file_dict_destroy(), _local_gsyncd_start(), afr_filter_xattrs(), br_stub_compare_sign_version(), br_stub_handle_object_signature(), br_stub_remove_vxattrs(), cli_cmd_quota_handle_list_all(), dht_create_linkfile_create_cbk(), dht_do_fresh_lookup(), dht_do_readdir(), dht_getxattr_cbk(), dht_mds_getxattr_cbk(), dht_migrate_file(), dht_mkdir_hashed_cbk(), dht_mknod_linkfile_create_cbk(), dht_opendir(), dht_pt_fgetxattr_cbk(), dht_pt_getxattr_cbk(), dht_readdirp_cbk(), dht_refresh_layout(), dht_strip_out_acls(), dict_delete_domain_key(), dict_remove_foreach_fn(), dict_rename_key(), ec_delete_stale_name(), ec_dict_del_array(), ec_dict_del_config(), ec_dict_del_number(), ec_heal_xattr_clean(), ec_manager_lookup(), ec_xl_op(), ga_lookup(), gf_defrag_settle_hash(), gf_rev_dns_lookup_cached(), glusterd_check_restart_gsync_session(), glusterd_clear_txn_opinfo(), glusterd_op_gsync_set(), glusterd_op_reset_all_volume_options(), glusterd_quota_disable(), glusterd_remove_slave_in_info(), glusterd_snap_clear_unsupported_opt(), marker_key_replace_with_ver(), mdc_inode_xatt_unset(), mgmt_rpc_notify(), migrate_special_files(), posix_acl_inherit(), posix_fdget_objectsignature(), posix_fgetxattr(), posix_fsetxattr(), posix_get_objectsignature(), posix_getxattr(), posix_setxattr(), rpcsvc_create_listeners(), rpcsvc_reconfigure_options(), shard_common_remove_xattr(), shard_fgetxattr_cbk(), shard_getxattr_cbk(), shard_lookup(), up_filter_afr_xattr(), up_filter_unregd_xattr(), update_slave_voluuid(), and xl_opt_validate().

◆ dict_deln()

◆ dict_dump_to_log()

◆ dict_dump_to_statedump()

void dict_dump_to_statedump ( dict_t dict,
char *  dict_name,
char *  domain 
)

◆ dict_dump_to_str()

int dict_dump_to_str ( dict_t dict,
char *  dump,
int  dumpsize,
char *  format 
)

◆ dict_for_key_value()

dict_t* dict_for_key_value ( const char *  name,
const char *  value,
size_t  size,
bool  is_static 
)

◆ dict_foreach()

int dict_foreach ( dict_t this,
int(*)(dict_t *this, char *key, data_t *value, void *data)  fn,
void *  data 
)

Definition at line 1286 of file dict.c.

References dict_foreach_match(), and dict_match_everything().

Referenced by __ec_removexattr_sinks(), __exp_file_print_walk(), __export_dir_lookup_netgroup(), __netgroup_dict_search(), _exp_dict_destroy(), _mnt3_auth_check_host_in_export(), _mnt3_auth_check_host_in_netgroup(), _mnt3_invalidate_old_mounts(), _netgroup_entry_deinit(), _nge_print(), _xlator_check_unknown_options(), afr_common_getxattr_stime_cbk(), afr_filter_xattrs(), auth_cache_purge(), changelog_ipc(), cli_xml_output_dict(), dht_aggregate_xattr(), dict_copy(), dict_copy_with_ref(), dict_get_by_index(), dict_reset(), do_xattrop(), ec_create_name(), ec_delete_stale_names(), ec_dict_combine(), ec_subvol_to_subvol_id_transform(), exp_file_deinit(), exp_file_print(), gd_update_volume_op_versions(), gf_auth_fini(), gf_auth_init(), gf_authenticate(), gf_cli_get_volume_cbk(), glusterd_add_volume_detail_to_dict(), glusterd_add_volume_to_dict(), glusterd_add_volumes_to_export_dict(), glusterd_check_geo_rep_running(), glusterd_get_gsync_status_mst(), glusterd_get_slave(), glusterd_get_slavehost_from_voluuid(), glusterd_get_state(), glusterd_heal_volume_brick_rsp(), glusterd_op_perform_add_bricks(), glusterd_op_reset_all_volume_options(), glusterd_options_reset(), glusterd_profile_volume_brick_rsp(), glusterd_profile_volume_use_rsp_dict(), glusterd_status_volume_brick_rsp(), glusterd_store_node_state_write(), glusterd_store_options(), glusterd_store_slave_in_info(), glusterd_store_volinfo_write(), glusterd_svc_start(), glusterd_update_slave_voluuid_slaveinfo(), glusterd_validate_globalopts(), glusterd_validate_reconfopts(), glusterd_volume_restart_gsyncds(), glusterd_volume_status_aggregate_tasks_status(), glusterd_volume_status_copy_to_op_ctx_dict(), glusterfs_graph_print(), index_xattrop_do(), init(), mdc_dict_update(), mdc_invalidate(), mdc_xattr_satisfied(), ng_file_deinit(), ng_file_print(), posix_common_removexattr(), posix_entry_create_xattr_set(), posix_fsetxattr(), posix_setxattr(), posix_xattr_fill(), ro_fxattrop(), ro_xattrop(), server4_fsetxattr_cbk(), server4_setxattr_cbk(), server_fsetxattr_cbk(), server_init(), server_reconfigure(), server_setxattr_cbk(), ta_prepare_fop(), ta_verify_on_disk_source(), up_filter_xattr(), up_ipc(), up_xattrop_cbk(), validate_auth_options(), xlator_options_validate_list(), and xldump().

◆ dict_foreach_fnmatch()

◆ dict_foreach_match()

◆ dict_get()

data_t* dict_get ( dict_t this,
char *  key 
)

Definition at line 544 of file dict.c.

References dict_getn(), GF_LOG_DEBUG, gf_msg_callingfn, and LG_MSG_INVALID_ARG.

Referenced by __mnt3_init_dir_export(), __mnt3_init_volume(), __mnt3_init_volume_export(), __netgroup_dict_search(), __nge_free_walk(), _fill_writev_xdata(), _nge_dict_get(), acl3_default_getacl_cbk(), acl3_getacl_cbk(), afr_handle_upcall_event(), arbiter_fill_writev_xdata(), auth_set_username_passwd(), br_stub_fsetxattr(), br_stub_internal_xattr(), call_from_sp_client_to_reset_tmfile(), changelog_mknod(), changelog_setxattr(), cli_cmd_volume_add_brick_cbk(), cli_xml_output_vol_info(), dht_check_and_set_acl_xattr_req(), dht_common_mark_mdsxattr(), dht_create_cbk(), dht_dir_common_set_remove_xattr(), dht_dir_heal_xattrs(), dht_dir_set_heal_xattr(), dht_discover_cbk(), dht_lookup_dir_cbk(), dht_mkdir(), dht_mkdir_hashed_cbk(), dht_notify(), dht_readdirp_cbk(), dht_refresh_layout(), dht_revalidate_cbk(), dht_selfheal_dir_xattr_persubvol(), dht_setxattr(), direct_io_mode(), ec_dict_data_uuid(), ec_dict_list(), ec_heal_xattr_clean(), ec_xattrop_cbk(), exp_dir_get_host(), exp_dir_get_netgroup(), exp_file_dir_from_uuid(), exp_file_get_dir(), fuse_thread_proc(), fuse_xattr_cbk(), ga_setxattr(), gd_brick_op_phase(), gf_authenticate(), gf_defrag_handle_hardlink(), gf_defrag_migrate_single_file(), gf_rev_dns_lookup_cached(), gf_utime_set_mdata_lookup_cbk(), glfs_migrate_fd_locks_safe(), glusterd_init_uds_listener(), glusterd_options_reset(), glusterd_stop_uds_listener(), handling_other_acl_related_xattr(), index_lookup_wrapper(), index_readdir_wrapper(), init(), key_value_cmp(), marker_key_replace_with_ver(), marker_key_set_ver(), marker_link(), marker_readdirp(), marker_unlink(), marker_xattr_cleanup_cmd(), mdc_fgetxattr(), mdc_fgetxattr_cbk(), mdc_fremovexattr(), mdc_getxattr(), mdc_getxattr_cbk(), mdc_removexattr(), meta_option_file_hook(), nfs3_init_options(), nfs3_init_subvolume_options(), nfs_init_state(), nfs_reconfigure_state(), ng_file_get_netgroup(), ngh_dict_get(), nufa_init(), ob_setxattr(), opts_mismatch(), posix_acl_fsetxattr(), posix_acl_lookup_cbk(), posix_acl_readdirp_cbk(), posix_acl_setxattr(), posix_acl_xattr_set(), posix_acl_xattr_update(), posix_copy_file_range(), posix_do_fallocate(), posix_do_zerofill(), posix_fsetxattr(), posix_fsync(), posix_init(), posix_is_layout_stale(), posix_readdirp(), posix_rename(), posix_set_mode_in_dict(), posix_setxattr(), posix_writev(), qr_init(), qr_lookup_cbk(), quota_link_continue(), quotad_aggregator_lookup(), rda_fill_fd_cbk(), reconfigure(), rpcsvc_auth_init_auths(), rpcsvc_create_listeners(), rpcsvc_init_options(), rpcsvc_volume_allowed(), server_build_config(), setxattr_scrutiny(), shard_lookup(), shard_lookup_cbk(), shard_modify_and_set_iatt_in_dict(), shard_readdir_cbk(), shard_readdir_past_dot_shard_cbk(), switch_init(), trash_dir_getxattr_cbk(), and up_compare_afr_xattr().

◆ dict_get_bin()

◆ dict_get_double()

◆ dict_get_gfuuid()

◆ dict_get_iatt()

◆ dict_get_int16()

int dict_get_int16 ( dict_t this,
char *  key,
int16_t *  val 
)

◆ dict_get_int32()

int dict_get_int32 ( dict_t this,
char *  key,
int32_t *  val 
)

Definition at line 1791 of file dict.c.

References data_to_int32_ptr(), data_unref(), dict_get_with_ref(), err, GF_DATA_TYPE_INT, and VALIDATE_DATA_AND_LOG.

Referenced by __glusterd_handle_bitrot(), __glusterd_handle_gsync_set(), __glusterd_mgmt_hndsk_versions_ack(), __is_file_migratable(), __server_get_volume_info(), _gd_syncop_commit_op_cbk(), _validate_directory(), afr_shd_dict_add_crawl_event(), afr_shd_dict_add_path(), afr_update_heal_status(), brick_graph_add_pump(), changelog_handle_virtual_xattr(), cli_cmd_bitrot_cbk(), cli_cmd_quota_cbk(), cli_cmd_quota_handle_list_all(), cli_cmd_volume_gsync_set_cbk(), cli_cmd_volume_heal_cbk(), cli_cmd_volume_set_cbk(), cli_event_remove_brick_str(), cli_get_each_volinfo_in_snap(), cli_get_single_snap_status(), cli_get_snap_volume_status(), cli_get_volinfo_in_snap(), cli_print_volume_status_call_frame(), cli_print_volume_status_call_stack(), cli_print_volume_status_callpool(), cli_print_volume_status_clients(), cli_print_volume_status_fd(), cli_print_volume_status_fdtable(), cli_print_volume_status_inode(), cli_print_volume_status_mem(), cli_print_volume_status_tasks(), cli_xml_output_peer_status(), cli_xml_output_snap_delete_begin(), cli_xml_output_vol_getopts(), cli_xml_output_vol_gsync(), cli_xml_output_vol_info(), cli_xml_output_vol_list(), cli_xml_output_vol_profile(), cli_xml_output_vol_status(), cli_xml_output_vol_top(), cli_xml_snapshot_begin_composite_op(), cli_xml_snapshot_end_composite_op(), cmd_heal_volume_statistics_out(), dht_lookup_everywhere_cbk(), dht_notify(), dht_read_iatt_from_xdata(), ec_deitransform(), ec_heal_inspect(), ec_lock_reuse(), ec_xl_op(), gd_brick_op_phase(), gd_commit_op_phase(), gd_import_new_brick_snap_details(), gd_sync_task_begin(), gd_unlock_op_phase(), gd_validate_peer_op_version(), gf_cli_get_volume_cbk(), gf_cli_status_cbk(), glfsh_crawl_directory(), glusterd_check_peer_has_higher_snap_version(), glusterd_compare_friend_snapshots(), glusterd_compare_snap(), glusterd_get_args_from_dict(), glusterd_hooks_set_volume_args(), glusterd_import_friend_missed_snap_list(), glusterd_import_friend_snap(), glusterd_merge_brick_status(), glusterd_op_bitrot(), glusterd_op_build_payload(), glusterd_op_copy_file(), glusterd_op_gsync_create(), glusterd_op_gsync_set(), glusterd_op_stage_bitrot(), glusterd_op_stage_gsync_create(), glusterd_op_stage_gsync_set(), glusterd_op_sys_exec(), glusterd_read_status_file(), glusterd_snap_config_use_rsp_dict(), glusterd_snap_create_use_rsp_dict(), glusterd_snap_quorum_check_for_create(), glusterd_snap_restore_use_rsp_dict(), glusterd_snap_use_rsp_dict(), glusterd_snap_volinfo_restore(), glusterd_update_snaps_synctask(), glusterfs_handle_translator_info_get(), glusterfs_handle_translator_op(), init(), mgmt_get_snapinfo_cbk(), notify(), pl_check_link_count(), pl_inodelk_xattr_fill_each(), posix_do_readdir(), posix_init(), posix_rchecksum(), rpc_clnt_connection_init(), rpcsvc_set_outstanding_rpc_limit(), server_build_config(), server_setvolume(), and trash_unlink().

◆ dict_get_int32n()

int dict_get_int32n ( dict_t this,
char *  key,
const int  keylen,
int32_t *  val 
)

Definition at line 1765 of file dict.c.

References data_to_int32_ptr(), data_unref(), dict_get_with_refn(), err, GF_DATA_TYPE_INT, and VALIDATE_DATA_AND_LOG.

Referenced by __glusterd_handle_add_brick(), __glusterd_handle_cli_deprobe(), __glusterd_handle_cli_get_volume(), __glusterd_handle_cli_probe(), __glusterd_handle_cli_profile_volume(), __glusterd_handle_cli_statedump_volume(), __glusterd_handle_create_volume(), __glusterd_handle_defrag_volume(), __glusterd_handle_friend_update(), __glusterd_handle_quota(), __glusterd_handle_remove_brick(), __glusterd_handle_sync_volume(), _add_remove_bricks_to_dict(), afr_is_possibly_under_txn(), afr_xl_op(), cli_print_volume_status_mempool(), gd_import_friend_volume_rebal_dict(), gd_should_i_start_rebalance(), gd_update_peerinfo_from_dict(), gf_cli_get_volume_cbk(), gf_cli_output_peer_status(), gf_cli_output_pool_list(), gf_cli_print_rebalance_status(), gf_cli_profile_volume_cbk(), gf_cli_top_volume_cbk(), glusterd_add_missed_snaps_to_dict(), glusterd_add_node_to_dict(), glusterd_aggr_brick_mount_dirs(), glusterd_append_status_dicts(), glusterd_bitrot_volume_node_rsp(), glusterd_brick_op_build_payload(), glusterd_bricks_select_heal_volume(), glusterd_bricks_select_profile_volume(), glusterd_bricks_select_remove_brick(), glusterd_bricks_select_status_volume(), glusterd_check_brick_order(), glusterd_compare_friend_data(), glusterd_compare_friend_volume(), glusterd_defrag_volume_node_rsp(), glusterd_defrag_volume_status_update(), glusterd_handle_heal_cmd(), glusterd_handle_heal_options_enable_disable(), glusterd_handle_node_rsp(), glusterd_handle_snapshot_config(), glusterd_handle_snapshot_delete(), glusterd_handle_snapshot_fn(), glusterd_handle_snapshot_info(), glusterd_heal_volume_brick_rsp(), glusterd_import_friend_volume(), glusterd_import_friend_volume_opts(), glusterd_import_friend_volumes(), glusterd_import_friend_volumes_synctask(), glusterd_import_global_opts(), glusterd_import_new_brick(), glusterd_import_new_ta_brick(), glusterd_import_quota_conf(), glusterd_import_volinfo(), glusterd_max_opversion_use_rsp_dict(), glusterd_mgmt_v3_lock_entity(), glusterd_mgmt_v3_op_rebalance(), glusterd_mgmt_v3_op_stage_rebalance(), glusterd_mgmt_v3_unlock_entity(), glusterd_op_add_brick(), glusterd_op_check_peer_defrag_status(), glusterd_op_create_volume(), glusterd_op_modify_op_ctx(), glusterd_op_perform_add_bricks(), glusterd_op_quota(), glusterd_op_rebalance(), glusterd_op_remove_brick(), glusterd_op_reset_all_volume_options(), glusterd_op_reset_volume(), glusterd_op_send_cli_response(), glusterd_op_set_volume(), glusterd_op_stage_add_brick(), glusterd_op_stage_create_volume(), glusterd_op_stage_quota(), glusterd_op_stage_rebalance(), glusterd_op_stage_remove_brick(), glusterd_op_stage_stats_volume(), glusterd_op_statedump_volume_args_get(), glusterd_op_stats_volume(), glusterd_op_stop_volume_args_get(), glusterd_print_client_details(), glusterd_print_gsync_status(), glusterd_profile_volume_brick_rsp(), glusterd_profile_volume_use_rsp_dict(), glusterd_rb_use_rsp_dict(), glusterd_reset_brick_prevalidate(), glusterd_rpc_probe(), glusterd_set_rebalance_id_in_rsp_dict(), glusterd_snap_create_clone_pre_val_use_rsp_dict(), glusterd_snap_pre_validate_use_rsp_dict(), glusterd_snap_restore_use_rsp_dict(), glusterd_snapshot(), glusterd_snapshot_activate_commit(), glusterd_snapshot_activate_deactivate_prevalidate(), glusterd_snapshot_brickop(), glusterd_snapshot_clone_postvalidate(), glusterd_snapshot_config_commit(), glusterd_snapshot_config_prevalidate(), glusterd_snapshot_create_commit(), glusterd_snapshot_create_postvalidate(), glusterd_snapshot_create_prevalidate(), glusterd_snapshot_postvalidate(), glusterd_snapshot_prevalidate(), glusterd_snapshot_restore_postop(), glusterd_snapshot_restore_prevalidate(), glusterd_snapshot_status_commit(), glusterd_snapshot_status_prevalidate(), glusterd_snapshot_update_snaps_post_validate(), glusterd_status_volume_brick_rsp(), glusterd_status_volume_client_list(), glusterd_sys_exec_output_rsp_dict(), glusterd_transport_inet_options_build(), glusterd_validate_and_set_gfid(), glusterd_volume_bitrot_scrub_use_rsp_dict(), glusterd_volume_quorum_check(), glusterd_volume_quota_copy_to_op_ctx_dict(), glusterd_volume_rebalance_use_rsp_dict(), glusterd_volume_status_aggregate_tasks_status(), glusterd_volume_status_copy_to_op_ctx_dict(), posix_skip_non_linkto_unlink(), quotad_aggregator_getlimit_cbk(), and rb_update_dstbrick_port().

◆ dict_get_int64()

◆ dict_get_int8()

◆ dict_get_mdata()

int dict_get_mdata ( dict_t this,
char *  key,
struct mdata_iatt mdata 
)

◆ dict_get_ptr()

◆ dict_get_ptr_and_len()

◆ dict_get_str()

int dict_get_str ( dict_t this,
char *  key,
char **  str 
)

Definition at line 2385 of file dict.c.

References _data::data, data_unref(), dict_get_with_ref(), err, GF_DATA_TYPE_STR, and VALIDATE_DATA_AND_LOG.

Referenced by __glusterd_handle_bitrot(), __glusterd_handle_gsync_set(), __glusterd_handle_log_rotate(), __mnt3_init_dir_export(), __mnt3_init_volume(), __mnt3_init_volume_export(), __server_get_snap_info(), __server_get_volume_info(), _brick_path_to_client_xlator(), auth_set_username_passwd(), aws_init(), aws_reconfigure(), br_collect_bad_objects_of_child(), check_and_add_debug_xl(), cli_cmd_bitrot_cbk(), cli_cmd_quota_cbk(), cli_cmd_quota_handle_list_all(), cli_cmd_volume_add_brick_cbk(), cli_cmd_volume_create_cbk(), cli_cmd_volume_gsync_set_cbk(), cli_cmd_volume_remove_brick_cbk(), cli_cmd_volume_reset_cbk(), cli_cmd_volume_set_cbk(), cli_event_remove_brick_str(), cli_get_detail_status(), cli_get_each_snap_info(), cli_get_each_volinfo_in_snap(), cli_get_single_snap_status(), cli_get_snap_volume_status(), cli_get_soft_limit(), cli_launch_glfs_heal(), cli_populate_req_dict_for_delete(), cli_print_volume_status_call_frame(), cli_print_volume_status_callpool(), cli_print_volume_status_client_list(), cli_print_volume_status_clients(), cli_print_volume_status_fd(), cli_print_volume_status_inode(), cli_print_volume_status_mem(), cli_print_volume_status_tasks(), cli_xml_output_generic_volume(), cli_xml_output_peer_status(), cli_xml_output_vol_create(), cli_xml_output_vol_getopts(), cli_xml_output_vol_gsync(), cli_xml_output_vol_info(), cli_xml_output_vol_list(), cli_xml_output_vol_profile(), cli_xml_output_vol_rebalance(), cli_xml_output_vol_remove_brick(), cli_xml_output_vol_status(), cli_xml_output_vol_status_tasks_detail(), cli_xml_output_vol_top(), cli_xml_snapshot_delete(), cmd_heal_volume_brick_out(), cmd_heal_volume_statistics_heal_count_out(), cmd_heal_volume_statistics_out(), dht_aggregate_split_brain_xattr(), dht_checking_pathinfo_cbk(), dht_find_local_subvol_cbk(), dht_heal_full_path(), dht_init_regex(), dht_linkinfo_getxattr_cbk(), dht_reconfigure(), dht_vgetxattr_alloc_and_fill(), dict_get_param(), ganesha_manage_export(), gd_commit_op_phase(), gd_import_new_brick_snap_details(), gd_import_volume_snap_details(), gd_pause_or_resume_gsync(), gd_stage_op_phase(), gd_sync_task_begin(), gd_validate_mgmt_hndsk_req(), get_path_resume_cbk(), gf_cli_clearlocks_volume_cbk(), gf_cli_get_volume_cbk(), gf_cli_print_bitrot_scrub_status(), gf_cli_status_cbk(), glfs_mgmt_getspec_cbk(), glfsh_heal_splitbrain_file(), glfsh_heal_status_boolean(), glfsh_print_brick_from_xl(), glfsh_print_heal_status(), glfsh_print_spb_status(), glfsh_print_summary_status(), glusterd_add_inode_size_to_dict(), glusterd_bitrot_scrub(), glusterd_bitrot_scrub_freq(), glusterd_bitrot_scrub_throttle(), glusterd_check_ganesha_cmd(), glusterd_compare_snap(), glusterd_create_essential_dir_files(), glusterd_friend_rpc_create(), glusterd_get_args_from_dict(), glusterd_get_geo_rep_session(), glusterd_get_global_options_for_all_vols(), glusterd_get_gsync_status(), glusterd_get_quorum_cluster_counts(), glusterd_get_slave_details_confpath(), glusterd_get_volume_opts(), glusterd_gsync_configure(), glusterd_gsync_delete(), glusterd_gsync_get_uuid(), glusterd_hooks_add_custom_args(), glusterd_hooks_run_hooks(), glusterd_hooks_set_volume_args(), glusterd_import_friend_snap(), glusterd_is_get_op(), glusterd_is_quorum_changed(), glusterd_is_quorum_validation_required(), glusterd_is_volume_in_server_quorum(), glusterd_merge_brick_status(), glusterd_op_bitrot(), glusterd_op_copy_file(), glusterd_op_gsync_args_get(), glusterd_op_gsync_create(), glusterd_op_gsync_set(), glusterd_op_log_rotate(), glusterd_op_perform_add_bricks(), glusterd_op_set_ganesha(), glusterd_op_stage_bitrot(), glusterd_op_stage_copy_file(), glusterd_op_stage_log_rotate(), glusterd_op_stage_set_ganesha(), glusterd_op_stage_sys_exec(), glusterd_op_start_volume(), glusterd_op_sys_exec(), glusterd_read_status_file(), glusterd_snap_config_use_rsp_dict(), glusterd_snap_create_use_rsp_dict(), glusterd_snap_quorum_check_for_create(), glusterd_snap_volinfo_restore(), glusterd_snapdsvc_init(), glusterd_snapdsvc_start(), glusterd_store_slave_in_info(), glusterd_update_snaps_synctask(), glusterd_validate_quorum(), glusterd_verify_gsync_status_opts(), glusterd_verify_slave(), glusterd_volume_start_glusterfs(), glusterfs_handle_bitrot(), glusterfs_handle_brick_status(), glusterfs_handle_nfs_profile(), glusterfs_handle_node_status(), glusterfs_update_mux_pid(), gsync_verify_config_options(), handle_default_options(), index_entry_action(), index_fstat(), index_lookup(), init(), init_xtime_priv(), is_downgrade(), is_upgrade(), mgmt_getspec_cbk(), nfs3_init_options(), nfs3_init_subvolume_options(), nfs_init_state(), nfs_priv_to_dict(), nfs_reconfigure_state(), nufa_find_local_brick(), pl_common_entrylk(), pl_common_inodelk(), posix_init(), quotad_aggregator_lookup(), rpcsvc_auth_check(), rpcsvc_init_options(), rpcsvc_reconfigure_options(), rpcsvc_set_allow_insecure(), rpcsvc_transport_peer_check_search(), rpcsvc_transport_privport_check(), rpcsvc_volume_allowed(), seq_dict_foreach(), server_setvolume(), set_gsyncd_inet6_arg(), syncop_gfid_to_path_hard(), syncop_is_subvol_local(), and worm_get_state().

◆ dict_get_str_boolean()

int dict_get_str_boolean ( dict_t this,
char *  key,
int  default_val 
)

dict_get_str_boolean - get a boolean value based on string representation.

@this : dictionary @key : dictionary key queried @default_val : default value if key not found

Returns
: @default_val if key not found : boolean interpretation of @this[@key] if it makes sense (ie., "on", "true", "enable" ...) : -1 if error occurs or @this[@key] doesn't make sens as boolean

So if you query a boolean option, then via @default_val you can choose between following patterns:

  • fall back to _gf_false if @key is not set [@default_val = 0]
  • fall back to _gf_true if @key is not set [@default_val = 1]
  • regard as failure if @key is not set [@default_val = -1]
  • handle specially (not as error) if @key is not set [@default_val = anything else]

Definition at line 2781 of file dict.c.

References _gf_false, _data::data, data_unref(), dict_get_with_ref(), err, gf_boolean_t, GF_DATA_TYPE_INT, gf_strn2boolean(), _data::len, and VALIDATE_DATA_AND_LOG.

Referenced by __checksum_cbk(), afr_reply_copy(), brick_graph_add_cdc(), brick_graph_add_namespace(), brick_graph_add_ro(), brick_graph_add_sdfs(), brick_graph_add_worm(), build_shd_graph(), client_graph_builder(), client_graph_set_perf_options(), ganesha_manage_export(), gd_is_self_heal_enabled(), gd_update_volume_op_versions(), gf_cli_gsync_set_cbk(), gf_cli_profile_volume_cbk(), gf_cli_snapshot_cbk(), gf_cli_top_volume_cbk(), glusterd_bricks_select_profile_volume(), glusterd_handle_mgmt_v3_lock_fn(), glusterd_handle_mgmt_v3_unlock_fn(), glusterd_handle_snapshot_create(), glusterd_is_ganesha_cluster(), glusterd_is_snap_soft_limit_reached(), glusterd_is_snapd_enabled(), glusterd_mgmt_v3_lock_entity(), glusterd_mgmt_v3_unlock_entity(), glusterd_op_gsync_create(), glusterd_op_gsync_set(), glusterd_op_modify_op_ctx(), glusterd_op_set_volume(), glusterd_op_stage_add_brick(), glusterd_op_stage_create_volume(), glusterd_op_stage_gsync_create(), glusterd_op_stage_gsync_set(), glusterd_op_stage_set_volume(), glusterd_op_stage_status_volume(), glusterd_op_status_volume(), glusterd_snapshot_config_prevalidate(), glusterd_snapshot_create_commit(), glusterd_snapshot_create_postvalidate(), glusterd_store_retrieve_snapd(), glusterd_take_brick_snapshot(), glusterd_update_volumes_dict(), glusterfs_handle_barrier(), nfs_init_state(), nfs_reconfigure_state(), notify(), rpc_clnt_new(), rpcsvc_auth_array(), rpcsvc_drc_init(), rpcsvc_drc_reconfigure(), rpcsvc_set_addr_namelookup(), rpcsvc_set_all_squash(), rpcsvc_set_root_squash(), server_init(), socket_connect(), svs_lookup(), volgen_graph_build_dht_cluster(), and volgen_graph_set_options_generic().

◆ dict_get_strn()

int dict_get_strn ( dict_t this,
char *  key,
const int  keylen,
char **  str 
)

Definition at line 2360 of file dict.c.

References _data::data, data_unref(), dict_get_with_refn(), err, GF_DATA_TYPE_STR, and VALIDATE_DATA_AND_LOG.

Referenced by __glusterd_handle_add_brick(), __glusterd_handle_barrier(), __glusterd_handle_cli_clearlocks_volume(), __glusterd_handle_cli_delete_volume(), __glusterd_handle_cli_deprobe(), __glusterd_handle_cli_heal_volume(), __glusterd_handle_cli_probe(), __glusterd_handle_cli_profile_volume(), __glusterd_handle_cli_start_volume(), __glusterd_handle_cli_statedump_volume(), __glusterd_handle_cli_stop_volume(), __glusterd_handle_create_volume(), __glusterd_handle_defrag_volume(), __glusterd_handle_friend_update(), __glusterd_handle_quota(), __glusterd_handle_remove_brick(), __glusterd_handle_replace_brick(), __glusterd_handle_reset_volume(), __glusterd_handle_set_volume(), __glusterd_handle_status_volume(), __glusterd_handle_sync_volume(), __glusterd_handle_umount(), _add_remove_bricks_to_dict(), _glusterd_quota_initiate_fs_crawl(), _glusterd_validate_quota_opts(), _select_hxlator_with_matching_brick(), afr_fgetxattr_clrlk_cbk(), afr_fgetxattr_pathinfo_cbk(), afr_getxattr_clrlk_cbk(), afr_getxattr_pathinfo_cbk(), afr_serialize_xattrs_with_delimiter(), br_collect_bad_objects_of_child(), cli_populate_req_dict_for_status(), cli_print_volume_status_mempool(), cli_snapshot_config_display(), cli_snapshot_list(), gd_mgmt_v3_post_validate_fn(), gd_peerinfo_from_dict(), gd_should_i_start_rebalance(), gd_update_peerinfo_from_dict(), get_gd_vol_thread_limit(), get_mux_limit_per_process(), get_replica_index_for_per_replica_cmd(), gf_cli_fsm_log_cbk(), gf_cli_get_vol_opt_cbk(), gf_cli_get_volume_cbk(), gf_cli_list_volume_cbk(), gf_cli_output_peer_hostnames(), gf_cli_output_peer_status(), gf_cli_output_pool_list(), gf_cli_print_limit_list_from_dict(), gf_cli_print_rebalance_status(), gf_cli_profile_volume_cbk(), gf_cli_status_volume_all(), gf_cli_sys_exec_cbk(), gf_cli_top_volume_cbk(), glusterd_ac_handle_friend_add_req(), glusterd_acquire_multiple_locks_per_entity(), glusterd_add_brick_to_snap_volume(), glusterd_add_inode_size_to_dict(), glusterd_add_missed_snaps_to_list(), glusterd_aggr_brick_mount_dirs(), glusterd_append_gsync_status(), glusterd_bitrot_volume_node_rsp(), glusterd_brick_op_build_payload(), glusterd_brick_op_prerequisites(), glusterd_bricks_select_barrier(), glusterd_bricks_select_heal_volume(), glusterd_bricks_select_profile_volume(), glusterd_bricks_select_rebalance_volume(), glusterd_bricks_select_remove_brick(), glusterd_bricks_select_scrub(), glusterd_bricks_select_snap(), glusterd_bricks_select_status_volume(), glusterd_check_brick_order(), glusterd_compare_friend_volume(), glusterd_create_quota_auxiliary_mount(), glusterd_create_snap_object(), glusterd_create_snap_object_for_clone(), glusterd_defrag_event_notify_handle(), glusterd_defrag_info_set(), glusterd_defrag_volume_node_rsp(), glusterd_do_mount(), glusterd_do_snap_cleanup(), glusterd_do_snap_vol(), glusterd_get_default_val_for_volopt(), glusterd_get_dst_brick_info(), glusterd_get_gfid_from_brick(), glusterd_get_global_max_op_version(), glusterd_get_global_opt_version(), glusterd_get_global_options_for_all_vols(), glusterd_get_global_server_quorum_ratio(), glusterd_get_state(), glusterd_get_volume_opts(), glusterd_get_volumes(), glusterd_gfproxydsvc_init(), glusterd_gfproxydsvc_start(), glusterd_gsync_use_rsp_dict(), glusterd_handle_defrag_start(), glusterd_handle_friend_update_delete(), glusterd_handle_replicate_brick_ops(), glusterd_handle_snap_limit(), glusterd_handle_snapshot_clone(), glusterd_handle_snapshot_config(), glusterd_handle_snapshot_create(), glusterd_handle_snapshot_delete_type_snap(), glusterd_handle_snapshot_delete_vol(), glusterd_handle_snapshot_info(), glusterd_handle_snapshot_list(), glusterd_handle_snapshot_restore(), glusterd_heal_volume_brick_rsp(), glusterd_import_new_brick(), glusterd_import_new_ta_brick(), glusterd_import_quota_conf(), glusterd_import_volinfo(), glusterd_mgmt_v3_build_payload(), glusterd_mgmt_v3_lock_entity(), glusterd_mgmt_v3_op_rebalance(), glusterd_mgmt_v3_op_stage_rebalance(), glusterd_mgmt_v3_unlock_entity(), glusterd_node_op_build_payload(), glusterd_op_ac_lock(), glusterd_op_ac_unlock(), glusterd_op_add_brick(), glusterd_op_barrier(), glusterd_op_build_payload(), glusterd_op_check_peer_defrag_status(), glusterd_op_clearlocks_volume(), glusterd_op_create_volume(), glusterd_op_delete_volume(), glusterd_op_modify_op_ctx(), glusterd_op_modify_port_key(), glusterd_op_perform_replace_brick(), glusterd_op_quota(), glusterd_op_rebalance(), glusterd_op_remove_brick(), glusterd_op_replace_brick(), glusterd_op_reset_all_volume_options(), glusterd_op_reset_brick(), glusterd_op_reset_volume(), glusterd_op_send_cli_response(), glusterd_op_set_all_volume_options(), glusterd_op_set_volume(), glusterd_op_stage_add_brick(), glusterd_op_stage_barrier(), glusterd_op_stage_clearlocks_volume(), glusterd_op_stage_create_volume(), glusterd_op_stage_delete_volume(), glusterd_op_stage_heal_volume(), glusterd_op_stage_quota(), glusterd_op_stage_rebalance(), glusterd_op_stage_remove_brick(), glusterd_op_stage_reset_volume(), glusterd_op_stage_set_volume(), glusterd_op_stage_stats_volume(), glusterd_op_stage_status_volume(), glusterd_op_stage_sync_volume(), glusterd_op_start_volume(), glusterd_op_statedump_volume_args_get(), glusterd_op_stats_volume(), glusterd_op_status_volume(), glusterd_op_stop_volume_args_get(), glusterd_op_sync_volume(), glusterd_op_txn_begin(), glusterd_op_txn_complete(), glusterd_op_volume_dict_uuid_to_hostname(), glusterd_print_client_details(), glusterd_quota_limit_usage(), glusterd_quota_remove_limits(), glusterd_release_multiple_locks_per_entity(), glusterd_remove_brick_validate_bricks(), glusterd_rpc_probe(), glusterd_set_barrier_value(), glusterd_set_quota_option(), glusterd_set_rebalance_id_in_rsp_dict(), glusterd_shdsvc_init(), glusterd_snap_create_clone_pre_val_use_rsp_dict(), glusterd_snap_restore_use_rsp_dict(), glusterd_snapshot(), glusterd_snapshot_activate_commit(), glusterd_snapshot_activate_deactivate_prevalidate(), glusterd_snapshot_brickop(), glusterd_snapshot_clone_commit(), glusterd_snapshot_clone_postvalidate(), glusterd_snapshot_clone_prevalidate(), glusterd_snapshot_config_commit(), glusterd_snapshot_config_prevalidate(), glusterd_snapshot_create_commit(), glusterd_snapshot_create_postvalidate(), glusterd_snapshot_create_prevalidate(), glusterd_snapshot_deactivate_commit(), glusterd_snapshot_remove_commit(), glusterd_snapshot_remove_prevalidate(), glusterd_snapshot_restore(), glusterd_snapshot_restore_postop(), glusterd_snapshot_restore_prevalidate(), glusterd_snapshot_status_commit(), glusterd_snapshot_status_prevalidate(), glusterd_status_volume_client_list(), glusterd_svc_init_common(), glusterd_svc_start(), glusterd_sys_exec_output_rsp_dict(), glusterd_take_brick_snapshot(), glusterd_take_brick_snapshot_task(), glusterd_to_cli(), glusterd_update_volumes_dict(), glusterd_validate_and_set_gfid(), glusterd_validate_shared_storage(), glusterd_validate_volume_id(), glusterd_volume_bitrot_scrub_use_rsp_dict(), glusterd_volume_quota_copy_to_op_ctx_dict(), glusterd_volume_rebalance_use_rsp_dict(), glusterd_volume_start_glusterfs(), glusterd_volume_status_aggregate_tasks_status(), glusterd_volume_status_copy_to_op_ctx_dict(), glusterd_xfer_cli_deprobe_resp(), glusterd_xfer_cli_probe_resp(), glusterfs_handle_translator_op(), import_prdict_dict(), init(), is_brick_mx_enabled(), mgmt_get_snapinfo_cbk(), print_brick_details(), qd_find_subvol(), quotad_aggregator_getlimit(), snap_max_limits_display_commit(), write_contents_to_common_pem_file(), and xlator_get_option().

◆ dict_get_uint16()

int dict_get_uint16 ( dict_t this,
char *  key,
uint16_t *  val 
)

◆ dict_get_uint32()

int dict_get_uint32 ( dict_t this,
char *  key,
uint32_t *  val 
)

Definition at line 1946 of file dict.c.

References data_to_uint32_ptr(), data_unref(), dict_get_with_ref(), err, GF_DATA_TYPE_UINT, and VALIDATE_DATA_AND_LOG.

Referenced by __glusterd_handle_status_volume(), afr_inode_write_fill(), afr_is_lock_mode_mandatory(), br_stub_fsetxattr(), br_stub_getxattr_cbk(), cli_cmd_volume_status_cbk(), cli_print_volume_status_clients(), cli_print_volume_status_fdtable(), cli_print_volume_status_itables(), cli_xml_output_vol_status(), client_setvolume_cbk(), cmd_heal_volume_brick_out(), dht_discover_complete(), dht_lookup_cbk(), dht_revalidate_cbk(), dht_setxattr(), ec_shd_selfheal(), gd_commit_op_phase(), gd_import_volume_snap_details(), gd_sync_task_begin(), gf_cli_status_cbk(), gf_cli_status_volume_all(), glusterd_bitrot_expiry_time(), glusterd_bitrot_signer_threads(), glusterd_compare_friend_volume(), glusterd_get_state(), glusterd_gsync_delete(), glusterd_handle_mgmt_v3_lock_fn(), glusterd_import_quota_conf(), glusterd_import_volinfo(), glusterd_is_status_tasks_op(), glusterd_mgmt_v3_initiate_lockdown(), glusterd_mgmt_v3_op_rebalance(), glusterd_op_ac_lock(), glusterd_op_build_payload(), glusterd_op_modify_op_ctx(), glusterd_op_rebalance(), glusterd_op_remove_brick(), glusterd_op_set_volume(), glusterd_op_stage_set_volume(), glusterd_op_stage_status_volume(), glusterd_op_status_volume(), glusterd_op_txn_begin(), glusterd_print_client_details(), glusterd_rpcsvc_options_build(), glusterfs_handle_brick_status(), glusterfs_handle_node_status(), glusterfs_volume_top_perf(), init(), marker_rename_cbk(), marker_unlink_cbk(), nlc_unlink_cbk(), pl_lk(), reconfigure(), rpcsvc_drc_init(), rpcsvc_drc_reconfigure(), rpcsvc_set_all_squash(), rpcsvc_set_root_squash(), server_setvolume(), socket_init(), and volgen_graph_build_client().

◆ dict_get_uint64()

int dict_get_uint64 ( dict_t this,
char *  key,
uint64_t *  val 
)

◆ dict_get_with_ref()

◆ dict_get_with_refn()

int dict_get_with_refn ( dict_t this,
char *  key,
const int  keylen,
data_t **  data 
)

◆ dict_getn()

◆ dict_has_key_from_array()

int dict_has_key_from_array ( dict_t dict,
char **  strings,
bool *  result 
)

Definition at line 3474 of file dict.c.

References _gf_false, _gf_true, dict_lookup_common(), _dict::lock, LOCK, UNLOCK, and XXH64().

Referenced by posix_common_removexattr().

◆ dict_key_count()

int dict_key_count ( dict_t this)

Definition at line 582 of file dict.c.

References GF_LOG_WARNING, gf_msg_callingfn, LG_MSG_INVALID_ARG, LOCK, lock, and UNLOCK.

Referenced by up_invalidate_needed().

◆ dict_keys_join()

int dict_keys_join ( void *  value,
int  size,
dict_t dict,
int(*)(char *key)  filter_fn 
)

◆ dict_lookup()

int32_t dict_lookup ( dict_t this,
char *  key,
data_t **  data 
)

◆ dict_match_everything()

bool dict_match_everything ( dict_t d,
char *  k,
data_t v,
void *  data 
)

Definition at line 1280 of file dict.c.

References _gf_true.

Referenced by are_dicts_equal(), and dict_foreach().

◆ dict_new()

dict_t* dict_new ( void  )

Definition at line 107 of file dict.c.

References dict_ref(), and get_new_dict_full().

Referenced by __afr_can_skip_data_block_heal(), __afr_selfheal_metadata_mark_pending_xattrs(), __dht_check_free_space(), __dht_rebalance_create_dst_file(), __dht_rebalance_migrate_data(), __dht_rebalance_open_src_file(), __ec_fd_data_adjust_versions(), __ec_heal_data_prepare(), __ec_heal_entry_prepare(), __ec_heal_mark_sinks(), __ec_heal_name(), __exp_line_host_parse(), __exp_line_ng_parse(), __gf_quiesce_perform_failover(), __glusterd_brick_op_cbk(), __glusterd_commit_op_cbk(), __glusterd_handle_add_brick(), __glusterd_handle_barrier(), __glusterd_handle_bitrot(), __glusterd_handle_cli_clearlocks_volume(), __glusterd_handle_cli_delete_volume(), __glusterd_handle_cli_deprobe(), __glusterd_handle_cli_get_volume(), __glusterd_handle_cli_heal_volume(), __glusterd_handle_cli_list_friends(), __glusterd_handle_cli_list_volume(), __glusterd_handle_cli_probe(), __glusterd_handle_cli_profile_volume(), __glusterd_handle_cli_start_volume(), __glusterd_handle_cli_statedump_volume(), __glusterd_handle_cli_stop_volume(), __glusterd_handle_cli_uuid_get(), __glusterd_handle_cli_uuid_reset(), __glusterd_handle_cluster_lock(), __glusterd_handle_copy_file(), __glusterd_handle_create_volume(), __glusterd_handle_defrag_volume(), __glusterd_handle_friend_update(), __glusterd_handle_fsm_log(), __glusterd_handle_ganesha_cmd(), __glusterd_handle_get_state(), __glusterd_handle_get_vol_opt(), __glusterd_handle_gsync_set(), __glusterd_handle_log_rotate(), __glusterd_handle_mount(), __glusterd_handle_quota(), __glusterd_handle_remove_brick(), __glusterd_handle_replace_brick(), __glusterd_handle_reset_volume(), __glusterd_handle_set_volume(), __glusterd_handle_status_volume(), __glusterd_handle_sync_volume(), __glusterd_handle_sys_exec(), __glusterd_mgmt_hndsk_version_cbk(), __glusterd_mgmt_hndsk_versions(), __glusterd_send_svc_configure_req(), __glusterd_stage_op_cbk(), __server_event_notify(), __server_get_snap_info(), __server_get_volume_info(), __server_getspec(), _afr_fav_child_reset_sink_xattrs(), _afr_handle_empty_brick_type(), _afr_shd_ta_get_xattrs(), _exports_file_init(), _fill_writev_xdata(), _gd_syncop_brick_op_cbk(), _gd_syncop_commit_op_cbk(), _gd_syncop_stage_op_cbk(), _mq_get_metadata(), _ng_handle_host_part(), _parse_ng_line(), acl3_setacl_resume(), acl3svc_init(), afr_changelog_fsync(), afr_changelog_populate_xdata(), afr_changelog_post_op_do(), afr_changelog_pre_op(), afr_create(), afr_dict_contains_heal_op(), afr_discard(), afr_fallocate(), afr_fgetxattr_clrlk_cbk(), afr_fgetxattr_lockinfo_cbk(), afr_fgetxattr_pathinfo_cbk(), afr_fremovexattr(), afr_fsetattr(), afr_fsetxattr(), afr_fsync(), afr_ftruncate(), afr_get_split_brain_status(), afr_getxattr_clrlk_cbk(), afr_getxattr_list_node_uuids_cbk(), afr_getxattr_lockinfo_cbk(), afr_getxattr_pathinfo_cbk(), afr_heal_splitbrain_file(), afr_inode_refresh_do(), afr_link(), afr_lookup_and_heal_gfid(), afr_lookup_sh_metadata_wrap(), afr_lookup_xattr_req_prepare(), afr_mark_new_entry_changelog(), afr_mark_split_brain_source_sinks_by_heal_op(), afr_mknod(), afr_removexattr(), afr_rename(), afr_rmdir(), afr_selfheal(), afr_selfheal_entry_dirent(), afr_selfheal_name_do(), afr_selfheal_newentry_mark(), afr_selfheal_output_xattr(), afr_selfheal_recreate_entry(), afr_selfheal_undo_pending(), afr_selfheal_unlocked_discover_on(), afr_selfheal_unlocked_lookup_on(), afr_set_heal_info(), afr_setattr(), afr_setxattr(), afr_shd_index_sweep(), afr_shd_inode_find(), afr_shd_ta_unset_xattrs(), afr_shd_zero_xattrop(), afr_split_brain_resolve_do(), afr_symlink(), afr_ta_id_file_check(), afr_ta_post_op_do(), afr_ta_read_txn(), afr_truncate(), afr_txn_refresh_done(), afr_unlink(), afr_writev(), afr_zerofill(), arbiter_fill_writev_xdata(), auth_cache_init(), auth_cache_purge(), bitd_compare_ckum(), br_collect_bad_objects_from_children(), br_get_bad_objects_list(), br_stub_bad_objects_path(), br_stub_fd_versioning(), br_stub_handle_object_signature(), br_stub_lookup(), br_stub_lookup_wrapper(), br_stub_perform_incversioning(), br_stub_readdirp(), br_stub_send_ipc_fop(), br_stub_send_stub_init_time(), br_trigger_sign(), build_bitd_volume_graph(), build_quotad_graph(), build_scrub_volume_graph(), build_shd_graph(), changelog_rpc_client_init(), changelog_rpc_server_init(), cli_cmd_bitrot_parse(), cli_cmd_copy_file_cbk(), cli_cmd_ganesha_parse(), cli_cmd_get_state_parse(), cli_cmd_getspec_cbk(), cli_cmd_gsync_set_parse(), cli_cmd_inode_quota_parse(), cli_cmd_log_filename_parse(), cli_cmd_log_level_parse(), cli_cmd_log_locate_parse(), cli_cmd_log_rotate_parse(), cli_cmd_peer_deprobe_cbk(), cli_cmd_peer_probe_cbk(), cli_cmd_pmap_b2p_cbk(), cli_cmd_quota_handle_list_all(), cli_cmd_quota_parse(), cli_cmd_snapshot_parse(), cli_cmd_sync_volume_cbk(), cli_cmd_sys_exec_cbk(), cli_cmd_umount_cbk(), cli_cmd_uuid_get_cbk(), cli_cmd_volume_add_brick_parse(), cli_cmd_volume_barrier_cbk(), cli_cmd_volume_clrlks_opts_parse(), cli_cmd_volume_create_parse(), cli_cmd_volume_defrag_parse(), cli_cmd_volume_delete_cbk(), cli_cmd_volume_heal_options_parse(), cli_cmd_volume_profile_parse(), cli_cmd_volume_remove_brick_parse(), cli_cmd_volume_rename_cbk(), cli_cmd_volume_replace_brick_parse(), cli_cmd_volume_reset_brick_parse(), cli_cmd_volume_reset_parse(), cli_cmd_volume_set_parse(), cli_cmd_volume_start_cbk(), cli_cmd_volume_statedump_options_parse(), cli_cmd_volume_status_parse(), cli_cmd_volume_stop_cbk(), cli_cmd_volume_top_parse(), cli_quotad_clnt_rpc_init(), cli_quotad_getlimit_cbk(), cli_rpc_init(), client3_3_getxattr(), client4_0_getxattr(), client_pre_writev(), client_pre_writev_v2(), client_setvolume_cbk(), cluster_marker_unwind(), create_fuse_mount(), create_master(), cs_download_task(), cs_fstat(), cs_open(), cs_readdirp(), cs_readv(), cs_setxattr(), cs_truncate(), cs_unlink(), dht_common_mark_mdsxattr(), dht_dir_common_set_remove_xattr(), dht_dir_heal_xattrs(), dht_do_readdir(), dht_fremovexattr(), dht_fsetxattr(), dht_fxattrop(), dht_get_du_info(), dht_guard_parent_layout_and_namespace(), dht_handle_debug_getxattr(), dht_linkfile_create(), dht_linkfile_create_cbk(), dht_lookup(), dht_lookup_everywhere_cbk(), dht_migrate_file(), dht_opendir(), dht_pt_mkdir(), dht_refresh_layout(), dht_remove_stale_linkto(), dht_removexattr(), dht_rename_lock_cbk(), dht_rmdir(), dht_rmdir_cached_lookup_cbk(), dht_rmdir_is_subvol_empty(), dht_rmdir_opendir_cbk(), dht_selfheal_dir_mkdir_lock_cbk(), dht_selfheal_dir_mkdir_lookup_done(), dht_selfheal_dir_xattr_persubvol(), dht_set_subvol_range(), dht_setxattr(), dht_setxattr_non_mds_cbk(), dht_update_commit_hash_for_layout_resume(), dht_vgetxattr_fill_and_set(), dht_vgetxattr_subvol_status(), dht_writev_cbk(), dht_xattrop(), dict_copy_with_ref(), dict_for_key_value(), do_xattrop(), ec_adjust_versions(), ec_create_name(), ec_dict_data_merge(), ec_get_real_size(), ec_get_size_version(), ec_getxattr_heal_cbk(), ec_heal_data_find_direction(), ec_heal_inspect(), ec_heal_set_dirty_without_lock(), ec_lock_insert(), ec_make_internal_fop_xdata(), ec_manager_create(), ec_manager_lookup(), ec_manager_mkdir(), ec_manager_mknod(), ec_manager_readdir(), ec_set_heal_info(), ec_set_new_entry_dirty(), ec_shd_index_sweep(), ec_update_size_version(), fuse_first_lookup(), fuse_gfid_set(), fuse_migrate_fd(), fuse_nameless_lookup(), fuse_setxattr(), ga_heal_entry(), ga_new_entry(), gd_brick_op_phase(), gd_commit_op_phase(), gd_import_friend_volume_rebal_dict(), gd_mgmt_v3_brick_op_cbk_fn(), gd_mgmt_v3_commit_cbk_fn(), gd_mgmt_v3_pre_validate_cbk_fn(), gd_stage_op_phase(), generate_client_volfiles(), generate_dummy_client_volfiles(), get_fop_attr_glfd(), get_fop_attr_thrd_key(), gf_cli3_1_uuid_get_cbk(), gf_cli3_remove_brick_status_cbk(), gf_cli_bitrot_cbk(), gf_cli_clearlocks_volume_cbk(), gf_cli_copy_file_cbk(), gf_cli_create_volume_cbk(), gf_cli_defrag_volume_cbk(), gf_cli_delete_volume_cbk(), gf_cli_fsm_log_cbk(), gf_cli_ganesha_cbk(), gf_cli_get_state_cbk(), gf_cli_get_vol_opt_cbk(), gf_cli_get_volume(), gf_cli_get_volume_cbk(), gf_cli_getspec(), gf_cli_gsync_set_cbk(), gf_cli_heal_volume_cbk(), gf_cli_list_friends_cbk(), gf_cli_list_volume_cbk(), gf_cli_profile_volume_cbk(), gf_cli_quota_cbk(), gf_cli_remove_brick_cbk(), gf_cli_replace_brick_cbk(), gf_cli_reset_brick_cbk(), gf_cli_set_volume_cbk(), gf_cli_snapshot_cbk(), gf_cli_snapshot_for_delete(), gf_cli_snapshot_for_status(), gf_cli_start_volume_cbk(), gf_cli_status_cbk(), gf_cli_status_volume_all(), gf_cli_stop_volume_cbk(), gf_cli_sys_exec_cbk(), gf_cli_top_volume_cbk(), gf_defrag_handle_hardlink(), gf_defrag_process_dir(), gf_defrag_start_crawl(), gf_dnscache_init(), gf_fix_layout_tier_attach_lookup(), gf_proto_cache_invalidation_to_upcall(), gf_svc_getxattr(), gf_svc_readdir_on_special_dir(), gf_svc_special_dir_revalidate_lookup(), gf_utime_lookup(), gf_utime_set_mdata_lookup_cbk(), gf_worm_set_xattr(), glfs_get_volume_info_rpc(), glfs_mgmt_getspec_cbk(), glfs_mgmt_init(), glfs_migrate_fd_safe(), glfs_resolve_component(), glfs_volfile_fetch(), glfsh_heal_from_bigger_file_or_mtime(), glfsh_heal_from_brick(), glfsh_print_pending_heals(), glusterd_ac_friend_probe(), glusterd_ac_send_friend_update(), glusterd_ac_update_friend(), glusterd_add_inode_size_to_dict(), glusterd_add_volumes_to_export_dict(), glusterd_bitdsvc_start(), glusterd_brick_connect(), glusterd_broadcast_friend_delete(), glusterd_conn_init(), glusterd_friend_rpc_create(), glusterd_generate_client_per_brick_volfile(), glusterd_get_args_from_dict(), glusterd_get_state(), glusterd_get_statefile_name(), glusterd_get_volumes(), glusterd_gsync_op_already_set(), glusterd_handle_brick_op_fn(), glusterd_handle_commit_fn(), glusterd_handle_friend_req(), glusterd_handle_mgmt_v3_lock_fn(), glusterd_handle_mgmt_v3_unlock_fn(), glusterd_handle_post_validate_fn(), glusterd_handle_pre_validate_fn(), glusterd_handle_snapshot_fn(), glusterd_import_friend_snap(), glusterd_import_friend_volumes_synctask(), glusterd_import_global_opts(), glusterd_init_uds_listener(), glusterd_list_friends(), glusterd_mgmt_handshake(), glusterd_mgmt_v3_brick_op(), glusterd_mgmt_v3_build_payload(), glusterd_mgmt_v3_commit(), glusterd_mgmt_v3_initiate_all_phases(), glusterd_mgmt_v3_initiate_all_phases_with_brickop_phase(), glusterd_mgmt_v3_initiate_replace_brick_cmd_phases(), glusterd_mgmt_v3_initiate_snap_phases(), glusterd_mgmt_v3_lock_init(), glusterd_mgmt_v3_lock_timer_init(), glusterd_mgmt_v3_post_validate(), glusterd_mgmt_v3_pre_validate(), glusterd_muxsvc_conn_init(), glusterd_new_shd_svc_start(), glusterd_op_ac_send_stage_op(), glusterd_op_ac_stage_op(), glusterd_op_build_payload(), glusterd_op_init_commit_rsp_dict(), glusterd_op_remove_brick(), glusterd_op_reset_all_volume_options(), glusterd_op_set_all_volume_options(), glusterd_op_stage_set_volume(), glusterd_options_init(), glusterd_perform_missed_op(), glusterd_print_gsync_status_by_vol(), glusterd_quotadsvc_start(), glusterd_read_status_file(), glusterd_rebalance_rpc_create(), glusterd_req_ctx_create(), glusterd_rpc_friend_add(), glusterd_scrubsvc_start(), glusterd_shdsvc_create_volfile(), glusterd_shdsvc_reconfigure(), glusterd_snap_cleanup(), glusterd_store_retrieve_node_state(), glusterd_txn_opinfo_dict_init(), glusterd_update_snaps_synctask(), glusterd_volinfo_new(), glusterfs_graph_insert(), glusterfs_handle_barrier(), glusterfs_handle_bitrot(), glusterfs_handle_brick_status(), glusterfs_handle_defrag(), glusterfs_handle_nfs_profile(), glusterfs_handle_node_status(), glusterfs_handle_svc_attach(), glusterfs_handle_translator_info_get(), glusterfs_handle_translator_op(), glusterfs_handle_volume_barrier_op(), glusterfs_listener_init(), glusterfs_mgmt_init(), glusterfs_muxsvc_setup_parent_graph(), glusterfs_terminate_response_send(), glusterfs_volfile_fetch_one(), index_fill_link_count(), index_getxattr_wrapper(), index_lookup_wrapper(), index_make_xattrop_watchlist(), init(), iot_getxattr(), is_geo_rep_active(), main(), make_seq_dict(), marker_getxattr_stampfile_cbk(), marker_lookup(), marker_readdirp(), marker_rename(), marker_start_setxattr(), marker_unlink(), mdc_fsetattr(), mdc_prepare_request(), mdc_register_xattr_inval(), mdc_setattr(), meta_direct_io_mode(), mgmt_get_snapinfo_cbk(), mgmt_get_volinfo_cbk(), mgmt_getspec_cbk(), migrate_special_files(), mnt1svc_init(), mnt3svc_init(), mq_are_xattrs_set(), mq_build_ancestry(), mq_create_size_xattrs(), mq_get_dirty(), mq_get_set_dirty(), mq_mark_dirty(), mq_update_contri(), mq_update_dirty_inode_task(), mq_update_size(), nfs_gfid_dict(), ng_file_deinit(), ng_file_parse(), nlc_getxattr(), nlc_unlink(), nlm4_establish_callback(), nlm4svc_init(), nufa_lookup(), pl_fgetxattr(), pl_fgetxattr_handle_lockinfo(), pl_fsetxattr_handle_lockinfo(), pl_getxattr_clrlk(), pl_request_link_count(), posix_acl_lookup(), posix_acl_readdirp(), posix_common_removexattr(), posix_create(), posix_cs_build_xattr_rsp(), posix_cs_set_state(), posix_dict_set_nlink(), posix_fgetxattr(), posix_fsetxattr(), posix_getxattr(), posix_mkdir(), posix_rchecksum(), posix_rename(), posix_setxattr(), posix_unlink(), posix_xattr_fill(), pub_glfs_h_creat(), pub_glfs_h_creat_open(), pub_glfs_h_mkdir(), pub_glfs_h_mknod(), pub_glfs_h_symlink(), qr_lookup(), quota_build_ancestry(), quota_enforcer_blocking_connect(), quota_lookup(), quota_readdirp(), quota_send_dir_limit_to_cli(), quota_statfs_cbk(), quota_validate(), quotad_aggregator_getlimit(), quotad_aggregator_lookup(), rda_mark_inode_dirty(), server4_entrylk_resume(), server4_fentrylk_resume(), server4_finodelk_resume(), server4_inodelk_resume(), server4_readv_cbk(), server_entrylk_resume(), server_fentrylk_resume(), server_finodelk_resume(), server_first_lookup(), server_init(), server_inodelk_resume(), server_readv_cbk(), server_reconfigure(), server_setvolume(), shard_common_inode_write_begin(), shard_delete_shards(), shard_fsetattr(), shard_fstat(), shard_fsync(), shard_ftruncate(), shard_link(), shard_lookup(), shard_lookup_internal_dir(), shard_mkdir_internal_dir(), shard_readdir_do(), shard_readv(), shard_refresh_base_file(), shard_rename(), shard_set_size_attrs_on_marker_file(), shard_setattr(), shard_stat(), shard_truncate(), shard_truncate_htol(), shard_unlink(), shard_update_file_size(), svs_fgetxattr(), svs_get_snapshot_list(), svs_getxattr(), svs_mgmt_init(), switch_lookup(), ta_prepare_fop(), trash_dir_lookup_cbk(), trash_internalop_dir_lookup_cbk(), trash_unlink_rename_cbk(), unserialize_rsp_direntp(), updatefn(), validate_brickopts(), worm_init_state(), worm_release(), xdr_to_dict(), and xlator_instantiate_va().

◆ dict_null_foreach_fn()

int dict_null_foreach_fn ( dict_t d,
char *  k,
data_t v,
void *  tmp 
)

◆ dict_ref()

dict_t* dict_ref ( dict_t dict)

Definition at line 751 of file dict.c.

References GF_ATOMIC_INC, GF_LOG_DEBUG, gf_msg_callingfn, and LG_MSG_INVALID_ARG.

Referenced by __afr_dir_write_fill(), __afr_dir_write_finalize(), __afr_inode_write_fill(), __afr_inode_write_finalize(), __ec_heal_metadata(), __ec_heal_metadata_prepare(), afr_access(), afr_changelog_cbk(), afr_common_lock_cbk(), afr_discover_cbk(), afr_do_readdir(), afr_fgetxattr(), afr_fgetxattr_pathinfo_cbk(), afr_flush_cbk(), afr_fop_handle_lock(), afr_fop_lock_proceed(), afr_fsetxattr(), afr_fstat(), afr_fsyncdir_cbk(), afr_fxattrop(), afr_getxattr(), afr_getxattr_list_node_uuids_cbk(), afr_getxattr_pathinfo_cbk(), afr_getxattr_quota_size_cbk(), afr_handle_entrylk(), afr_handle_inodelk(), afr_inode_refresh_subvol_cbk(), afr_ipc_cbk(), afr_lk(), afr_lookup_cbk(), afr_open(), afr_open_cbk(), afr_opendir_cbk(), afr_pick_error_xdata(), afr_readlink(), afr_readv(), afr_reply_copy(), afr_seek(), afr_selfheal_discover_cbk(), afr_setxattr(), afr_sh_generic_fop_cbk(), afr_stat(), afr_statfs_cbk(), afr_writev_copy_outvars(), afr_xattrop(), args_access_cbk_store(), args_access_store(), args_copy_file_range_cbk_store(), args_copy_file_range_store(), args_create_cbk_store(), args_create_store(), args_discard_cbk_store(), args_discard_store(), args_entrylk_cbk_store(), args_entrylk_store(), args_fallocate_cbk_store(), args_fallocate_store(), args_fentrylk_cbk_store(), args_fentrylk_store(), args_fgetxattr_cbk_store(), args_fgetxattr_store(), args_finodelk_cbk_store(), args_finodelk_store(), args_flush_cbk_store(), args_flush_store(), args_fremovexattr_cbk_store(), args_fremovexattr_store(), args_fsetattr_cbk_store(), args_fsetattr_store(), args_fsetxattr_cbk_store(), args_fsetxattr_store(), args_fstat_cbk_store(), args_fstat_store(), args_fsync_cbk_store(), args_fsync_store(), args_fsyncdir_cbk_store(), args_fsyncdir_store(), args_ftruncate_cbk_store(), args_ftruncate_store(), args_fxattrop_cbk_store(), args_fxattrop_store(), args_getactivelk_cbk_store(), args_getxattr_cbk_store(), args_getxattr_store(), args_icreate_store(), args_icreate_store_cbk(), args_inodelk_cbk_store(), args_inodelk_store(), args_ipc_cbk_store(), args_ipc_store(), args_lease_cbk_store(), args_lease_store(), args_link_cbk_store(), args_link_store(), args_lk_cbk_store(), args_lk_store(), args_lookup_cbk_store(), args_lookup_store(), args_mkdir_cbk_store(), args_mkdir_store(), args_mknod_cbk_store(), args_mknod_store(), args_namelink_store(), args_namelink_store_cbk(), args_open_cbk_store(), args_open_store(), args_opendir_cbk_store(), args_opendir_store(), args_put_cbk_store(), args_put_store(), args_rchecksum_cbk_store(), args_rchecksum_store(), args_readdir_cbk_store(), args_readdir_store(), args_readdirp_cbk_store(), args_readdirp_store(), args_readlink_cbk_store(), args_readlink_store(), args_readv_cbk_store(), args_readv_store(), args_removexattr_cbk_store(), args_removexattr_store(), args_rename_cbk_store(), args_rename_store(), args_rmdir_cbk_store(), args_rmdir_store(), args_seek_cbk_store(), args_seek_store(), args_setactivelk_store(), args_setattr_cbk_store(), args_setattr_store(), args_setxattr_cbk_store(), args_setxattr_store(), args_stat_cbk_store(), args_stat_store(), args_statfs_cbk_store(), args_statfs_store(), args_symlink_cbk_store(), args_symlink_store(), args_truncate_cbk_store(), args_truncate_store(), args_unlink_cbk_store(), args_unlink_store(), args_writev_cbk_store(), args_writev_store(), args_xattrop_cbk_store(), args_xattrop_store(), args_zerofill_cbk_store(), args_zerofill_store(), br_stub_handle_object_signature(), br_stub_lookup(), br_stub_readdirp(), cli_get_soft_limit(), cs_fstat(), cs_open(), cs_readv(), cs_setxattr(), cs_stat_check_cbk(), cs_truncate(), cs_unlink(), dht_access(), dht_common_xattrop_cbk(), dht_create(), dht_dir_common_set_remove_xattr(), dht_discard(), dht_discover_cbk(), dht_discover_complete(), dht_do_readdir(), dht_fallocate(), dht_file_removexattr_cbk(), dht_file_setxattr_cbk(), dht_finodelk(), dht_flush(), dht_fremovexattr(), dht_fsetattr(), dht_fsetxattr(), dht_fstat(), dht_fsync(), dht_ftruncate(), dht_fxattrop(), dht_getxattr_cbk(), dht_getxattr_get_real_filename_cbk(), dht_link(), dht_lk(), dht_lk_cbk(), dht_lookup(), dht_lookup_cbk(), dht_lookup_dir_cbk(), dht_lookup_everywhere_cbk(), dht_mkdir(), dht_mknod(), dht_mknod_wind_to_avail_subvol(), dht_open(), dht_readdirp_cbk(), dht_readv(), dht_removexattr(), dht_rename(), dht_rename_cbk(), dht_revalidate_cbk(), dht_rmdir(), dht_rmdir_opendir_cbk(), dht_selfheal_dir_mkdir_lookup_cbk(), dht_selfheal_dir_mkdir_lookup_done(), dht_set_local_rebalance(), dht_setattr(), dht_setxattr(), dht_setxattr_mds_cbk(), dht_stat(), dht_truncate(), dht_writev(), dht_xattrop(), dht_zerofill(), dict_new(), ec_access(), ec_access_cbk(), ec_common_readdir_cbk(), ec_dir_write_cbk(), ec_discard(), ec_entrylk(), ec_entrylk_cbk(), ec_fallocate(), ec_fentrylk(), ec_fentrylk_cbk(), ec_fgetxattr(), ec_fgetxattr_cbk(), ec_finodelk(), ec_finodelk_cbk(), ec_flush(), ec_flush_cbk(), ec_fsetxattr_cbk(), ec_fstat(), ec_fstat_cbk(), ec_fsync(), ec_fsync_cbk(), ec_fsyncdir(), ec_fsyncdir_cbk(), ec_fxattrop(), ec_getxattr(), ec_getxattr_cbk(), ec_getxattr_heal_cbk(), ec_heal(), ec_inode_write_cbk(), ec_inodelk(), ec_inodelk_cbk(), ec_ipc(), ec_ipc_cbk(), ec_lk(), ec_lk_cbk(), ec_lookup_cbk(), ec_open(), ec_open_cbk(), ec_opendir(), ec_opendir_cbk(), ec_readdir(), ec_readdirp(), ec_readlink(), ec_readlink_cbk(), ec_readv(), ec_readv_cbk(), ec_seek(), ec_seek_cbk(), ec_stat(), ec_stat_cbk(), ec_statfs(), ec_statfs_cbk(), ec_update_writev_cbk(), ec_xattrop(), ec_xattrop_cbk(), entry_copy(), fop_getactivelk_stub(), fop_icreate_stub(), fop_namelink_stub(), fop_setactivelk_cbk_stub(), ga_heal_entry(), ga_new_entry(), gf_cli_status_cbk(), gf_defrag_get_entry(), gf_svc_readdir_on_special_dir(), gf_svc_special_dir_revalidate_lookup(), gf_utime_lookup(), gluster_graph_take_reference(), glusterd_add_volumes_to_export_dict(), glusterd_import_global_opts(), glusterd_op_ac_send_lock(), glusterd_op_ac_send_unlock(), glusterd_op_build_payload(), glusterd_op_init_commit_rsp_dict(), glusterd_op_remove_brick(), glusterd_store_retrieve_node_state(), glusterd_txn_opinfo_init(), index_fill_link_count(), index_fxattrop(), index_xattrop(), ioc_cache_validate(), ioc_page_fault(), ioc_readv(), marker_lookup(), marker_lookup_cbk(), marker_readdirp(), marker_rename(), marker_unlink(), mdc_create(), mdc_fsetxattr(), mdc_inode_xatt_get(), mdc_mkdir(), mdc_mknod(), mdc_prepare_request(), mdc_setxattr(), nufa_create(), nufa_local_lookup_cbk(), nufa_lookup(), nufa_mknod(), pl_ftruncate(), pl_request_link_count(), pl_truncate(), posix_acl_lookup(), posix_create(), quiesce_lookup(), quiesce_readdirp(), quota_enforcer_lookup(), quota_link(), quota_lookup(), quota_statfs(), quota_statfs_cbk(), rda_fill_fd(), rda_readdirp(), rpc_transport_load(), server_setvolume(), shard_common_inode_write_begin(), shard_common_inode_write_do_cbk(), shard_common_remove_xattr(), shard_common_set_xattr(), shard_common_setattr_cbk(), shard_common_stat_cbk(), shard_fsetattr(), shard_fstat(), shard_fsync(), shard_ftruncate(), shard_link(), shard_lookup(), shard_readdir_do(), shard_readv(), shard_readv_do_cbk(), shard_rename(), shard_rename_src_cbk(), shard_setattr(), shard_stat(), shard_truncate(), shard_unlink(), shard_unlink_base_file_cbk(), socket_server_event_handler(), switch_local_lookup_cbk(), switch_lookup(), switch_mknod(), syncop_access_cbk(), syncop_copy_file_range_cbk(), syncop_create_cbk(), syncop_discard_cbk(), syncop_entrylk_cbk(), syncop_fallocate_cbk(), syncop_flush_cbk(), syncop_fremovexattr_cbk(), syncop_fsetxattr_cbk(), syncop_fstat_cbk(), syncop_fsync_cbk(), syncop_fsyncdir_cbk(), syncop_ftruncate_cbk(), syncop_getactivelk_cbk(), syncop_getxattr_cbk(), syncop_icreate_cbk(), syncop_inodelk_cbk(), syncop_ipc_cbk(), syncop_lease_cbk(), syncop_link_cbk(), syncop_lk_cbk(), syncop_lookup_cbk(), syncop_mkdir_cbk(), syncop_mknod_cbk(), syncop_namelink_cbk(), syncop_open_cbk(), syncop_opendir_cbk(), syncop_put_cbk(), syncop_readdir_cbk(), syncop_readdirp_cbk(), syncop_readlink_cbk(), syncop_readv_cbk(), syncop_removexattr_cbk(), syncop_rename_cbk(), syncop_rmdir_cbk(), syncop_seek_cbk(), syncop_setactivelk_cbk(), syncop_setattr_cbk(), syncop_setxattr_cbk(), syncop_statfs_cbk(), syncop_symlink_cbk(), syncop_unlink_cbk(), syncop_writev_cbk(), syncop_xattrop_cbk(), syncop_zerofill_cbk(), and ta_prepare_fop().

◆ dict_remove_foreach_fn()

int dict_remove_foreach_fn ( dict_t d,
char *  k,
data_t v,
void *  tmp 
)

◆ dict_rename_key()

int dict_rename_key ( dict_t this,
char *  key,
char *  replace_key 
)

◆ dict_reset()

◆ dict_serialize()

int32_t dict_serialize ( dict_t this,
char *  buf 
)

dict_serialize - serialize a dictionary into a buffer

@this: dict to serialize @buf: buffer to serialize into. This must be at least dict_serialized_length (this) large

Returns
: success: 0 failure: -errno

Definition at line 3044 of file dict.c.

References dict_serialize_lk(), GF_LOG_WARNING, gf_msg_callingfn, LG_MSG_INVALID_ARG, LOCK, lock, out, and UNLOCK.

◆ dict_serialize_value_with_delim()

int dict_serialize_value_with_delim ( dict_t this,
char *  buf,
int32_t *  serz_len,
char  delimiter 
)

◆ dict_serialized_length()

int32_t dict_serialized_length ( dict_t this)

dict_serialized_length - return the length of serialized dict

@this: dict to be serialized

Returns
: success: len : failure: -errno

Definition at line 3012 of file dict.c.

References dict_serialized_length_lk(), GF_LOG_WARNING, gf_msg_callingfn, LG_MSG_INVALID_ARG, LOCK, lock, out, and UNLOCK.

◆ dict_serialized_length_lk()

int dict_serialized_length_lk ( dict_t this)

Serialization format:


| count | key len | val len | key \0| value


4 4 4 <key len>

dict_serialized_length_lk - return the length of serialized dict. This procedure has to be called with this->lock held.

@this : dict to be serialized

Returns
: success: len : failure: -errno

Definition at line 2871 of file dict.c.

References DICT_DATA_HDR_KEY_LEN, DICT_DATA_HDR_VAL_LEN, DICT_HDR_LEN, GF_LOG_ERROR, gf_smsg, _data_pair::key, _data::len, LG_MSG_COUNT_LESS_THAN_ZERO, LG_MSG_NULL_PTR, LG_MSG_PAIRS_LESS_THAN_COUNT, LG_MSG_VALUE_LENGTH_LESS_THAN_ZERO, _data_pair::next, out, and _data_pair::value.

Referenced by dict_allocate_and_serialize(), dict_serialized_length(), and glusterd_dict_arr_serialize().

◆ dict_set()

◆ dict_set_bin()

int dict_set_bin ( dict_t this,
char *  key,
void *  ptr,
size_t  size 
)

dict_set_bin: Set key and its value in the dictionary. This function should be called if the value is stored in dynamic memory.

Definition at line 2633 of file dict.c.

References _gf_false, dict_set_bin_common(), and GF_DATA_TYPE_PTR.

Referenced by _posix_handle_xattr_keyvalue_pair(), _posix_xattr_get_set(), _posix_xattr_get_set_from_backend(), afr_selfheal_output_xattr(), afr_shd_ta_unset_xattrs(), br_stub_getxattr_cbk(), dht_aggregate_quota_xattr(), dht_dict_set_array(), dht_guard_parent_layout_and_namespace(), dht_mkdir_helper(), dht_pt_mkdir(), dht_rename_track_for_changelog(), dht_selfheal_dir_xattr_persubvol(), dht_set_parent_layout_in_dict(), dht_update_commit_hash_for_layout_resume(), dict_for_key_value(), ec_adjust_versions(), ec_dict_set_array(), ec_dict_set_config(), ec_dict_set_number(), get_fop_attr_glfd(), get_fop_attr_thrd_key(), gf_get_max_stime(), gf_get_min_stime(), gf_replace_new_iatt_in_dict(), gf_replace_old_iatt_in_dict(), glusterd_append_status_dicts(), glusterd_generate_txn_id(), glusterd_handle_snapshot_clone(), glusterd_handle_snapshot_create(), glusterd_mgmt_v3_initiate_all_phases(), glusterd_mgmt_v3_initiate_all_phases_with_brickop_phase(), glusterd_mgmt_v3_initiate_replace_brick_cmd_phases(), glusterd_mgmt_v3_initiate_snap_phases(), glusterd_mgmt_v3_lock(), glusterd_op_ac_commit_op(), glusterd_op_ac_stage_op(), glusterd_op_copy_file(), glusterd_read_status_file(), glusterd_set_originator_uuid(), glusterd_set_txn_opinfo(), marker_getxattr_stampfile_cbk(), posix_acl_inherit(), posix_setxattr(), quota_dict_set_meta(), quota_dict_set_size_meta(), shard_update_file_size(), and ta_set_incoming_values().

◆ dict_set_double()

◆ dict_set_dynptr()

◆ dict_set_dynstr()

int dict_set_dynstr ( dict_t this,
char *  key,
char *  str 
)

Definition at line 2487 of file dict.c.

References dict_set_dynstrn().

Referenced by __gf_quiesce_perform_failover(), __glusterd_handle_copy_file(), __glusterd_handle_gsync_set(), __glusterd_handle_sys_exec(), __server_get_volume_info(), _fcbk_conftodict(), acl3svc_init(), br_stub_entry_xattr_fill(), cli_add_key_group_value(), cli_cmd_get_state_parse(), cli_cmd_quota_handle_list_all(), cli_cmd_volume_add_brick_parse(), cli_cmd_volume_clrlks_opts_parse(), cli_cmd_volume_create_parse(), cli_cmd_volume_statedump_options_parse(), cli_get_soft_limit(), cli_snap_create_desc_parse(), client_dump_locks(), config_parse(), dht_aggregate_split_brain_xattr(), dht_handle_debug_getxattr(), dht_vgetxattr_fill_and_set(), dict_set_dynstr_with_alloc(), ec_dict_data_concat(), ec_getxattr_heal_cbk(), gf_proc_dump_call_frame_to_dict(), glusterd_add_snapd_to_dict(), glusterd_bitrot_scrub(), glusterd_bitrot_scrub_freq(), glusterd_bitrot_scrub_throttle(), glusterd_get_brick_lvm_details(), glusterd_gsync_volinfo_dict_set(), glusterd_mgmt_handshake(), glusterd_op_set_all_volume_options(), glusterd_op_set_volume(), glusterd_op_sys_exec(), glusterd_set_quota_option(), glusterd_snap_create_use_rsp_dict(), glusterd_snap_set_unsupported_opt(), glusterd_snapshot_clone_commit(), glusterd_snapshot_create_commit(), glusterd_snapshot_remove_commit(), glusterd_store_retrieve_options(), glusterd_store_update_volinfo(), import_prdict_dict(), inode_dump_to_dict(), io_stats_dump_stats_to_dict(), mnt1svc_init(), mnt3svc_init(), nfs_init_state(), nlc_get_real_file_name(), nlm4_establish_callback(), nlm4svc_init(), pl_getxattr_clrlk(), posix_get_gfid2path(), posix_getxattr(), posix_xattr_get_real_filename(), rpcsvc_create_listeners(), rpcsvc_transport_unix_options_build(), server_first_lookup(), server_setvolume(), set_hostname_path_in_dict(), update_slave_voluuid(), and xdr_to_dict().

◆ dict_set_dynstr_with_alloc()

int dict_set_dynstr_with_alloc ( dict_t this,
char *  key,
const char *  str 
)

Definition at line 2471 of file dict.c.

References dict_set_dynstr(), GF_FREE, and gf_strdup().

Referenced by __glusterd_handle_create_volume(), _local_gsyncd_start(), br_collect_bad_objects_of_child(), br_read_bad_object_dir(), br_scrubber_status_get(), cli_populate_req_dict_for_delete(), cli_populate_req_dict_for_status(), cli_snap_config_limit_parse(), cli_snapshot_status(), client_graph_set_rda_options(), ganesha_manage_export(), gd_add_friend_to_dict(), gd_add_peer_hostnames_to_dict(), gd_add_vol_snap_details_to_dict(), gf_svc_getxattr(), glusterd_add_brick_mount_details(), glusterd_add_brick_to_dict(), glusterd_add_brick_to_snap_volume(), glusterd_add_inode_size_to_dict(), glusterd_add_missed_snaps_to_dict(), glusterd_add_missed_snaps_to_export_dict(), glusterd_add_snap_to_dict(), glusterd_add_volume_to_dict(), glusterd_aggr_brick_mount_dirs(), glusterd_append_gsync_status(), glusterd_bitrot_disable(), glusterd_bitrot_enable(), glusterd_bitrot_expiry_time(), glusterd_bitrot_signer_threads(), glusterd_bitrot_volume_node_rsp(), glusterd_check_restart_gsync_session(), glusterd_enable_default_options(), glusterd_generate_client_per_brick_volfile(), glusterd_get_all_snapshot_status(), glusterd_get_default_val_for_volopt(), glusterd_get_global_max_op_version(), glusterd_get_global_options_for_all_vols(), glusterd_get_snap_status_of_volume(), glusterd_gsync_use_rsp_dict(), glusterd_handle_snapshot_clone(), glusterd_handle_snapshot_create(), glusterd_handle_snapshot_delete_all(), glusterd_inode_quota_enable(), glusterd_mgmt_v3_initiate_snap_phases(), glusterd_mgmt_v3_lock(), glusterd_op_barrier(), glusterd_op_create_volume(), glusterd_op_gsync_set(), glusterd_op_set_ganesha(), glusterd_op_stage_add_brick(), glusterd_op_stage_create_volume(), glusterd_op_stage_gsync_create(), glusterd_op_stage_replace_brick(), glusterd_op_stage_start_volume(), glusterd_quota_disable(), glusterd_quota_enable(), glusterd_reset_brick_prevalidate(), glusterd_rpc_friend_add(), glusterd_set_barrier_value(), glusterd_set_shared_storage(), glusterd_sm_tr_log_transition_add_to_dict(), glusterd_snap_create_clone_common_prevalidate(), glusterd_snap_create_clone_pre_val_use_rsp_dict(), glusterd_snap_create_use_rsp_dict(), glusterd_snap_restore_use_rsp_dict(), glusterd_snapshot_activate_commit(), glusterd_snapshot_clone_commit(), glusterd_snapshot_config_commit(), glusterd_snapshot_create_commit(), glusterd_snapshot_deactivate_commit(), glusterd_snapshot_get_vol_snapnames(), glusterd_snapshot_get_volnames_uuids(), glusterd_snapshot_remove_commit(), glusterd_snapshot_remove_prevalidate(), glusterd_snapshot_restore(), glusterd_svc_set_shd_pidfile(), glusterd_update_volumes_dict(), glusterd_vol_add_quota_conf_to_dict(), glusterd_volume_bitrot_scrub_use_rsp_dict(), glusterfs_mgmt_init(), glusterfs_volfile_fetch_one(), rpcsvc_reconfigure_options(), and snap_max_limits_display_commit().

◆ dict_set_dynstrn()

int dict_set_dynstrn ( dict_t this,
char *  key,
const int  keylen,
char *  str 
)

Definition at line 2494 of file dict.c.

References data_destroy(), data_from_dynstr(), dict_setn(), and err.

Referenced by __glusterd_handle_create_volume(), _add_hxlator_to_dict(), _add_task_to_dict(), _glusterd_restart_gsync_session(), _posix_xattr_get_set(), afr_fgetxattr_clrlk_cbk(), afr_fgetxattr_pathinfo_cbk(), afr_getxattr_clrlk_cbk(), afr_getxattr_pathinfo_cbk(), afr_shd_dict_add_crawl_event(), afr_shd_dict_add_path(), dict_set_dynstr(), fill_shd_status_for_local_bricks(), glusterd_add_node_to_dict(), glusterd_add_shd_to_dict(), glusterd_add_volume_detail_to_dict(), glusterd_add_volume_to_dict(), glusterd_bitrot_volume_node_rsp(), glusterd_copy_uuid_to_dict(), glusterd_defrag_volume_node_rsp(), glusterd_dict_set_volid(), glusterd_generate_and_set_task_id(), glusterd_get_each_snap_object_status(), glusterd_get_gfid_from_brick(), glusterd_get_single_brick_status(), glusterd_get_state(), glusterd_get_volopt_content(), glusterd_handle_snapshot_clone(), glusterd_handle_snapshot_create(), glusterd_handle_snapshot_delete_type_snap(), glusterd_handle_snapshot_fn(), glusterd_handle_snapshot_restore(), glusterd_op_clearlocks_volume(), glusterd_op_modify_op_ctx(), glusterd_op_remove_brick(), glusterd_op_reset_all_volume_options(), glusterd_op_set_all_volume_options(), glusterd_op_volume_dict_uuid_to_hostname(), glusterd_profile_volume_brick_rsp(), glusterd_set_brick_mx_opts(), glusterd_snapshot_get_all_snapnames(), glusterd_snapshot_get_info_by_volume(), glusterd_snapshot_get_snap_detail(), glusterd_snapshot_get_snapvol_detail(), glusterd_store_slave_in_info(), glusterd_sys_exec_output_rsp_dict(), glusterd_validate_and_set_gfid(), glusterd_volume_bitrot_scrub_use_rsp_dict(), glusterd_volume_quota_copy_to_op_ctx_dict(), glusterd_volume_rebalance_use_rsp_dict(), and xlator_set_option().

◆ dict_set_flag()

int dict_set_flag ( dict_t this,
char *  key,
int  flag 
)

Definition at line 2202 of file dict.c.

References _dict_modify_flag(), and DICT_FLAG_SET.

Referenced by dht_selfheal_dir_mkdir_lookup_done().

◆ dict_set_gfuuid()

◆ dict_set_iatt()

int dict_set_iatt ( dict_t this,
char *  key,
struct iatt iatt,
bool  is_static 
)

◆ dict_set_int16()

int dict_set_int16 ( dict_t this,
char *  key,
int16_t  val 
)

Definition at line 1745 of file dict.c.

References data_destroy(), data_from_int16(), dict_set(), and err.

◆ dict_set_int32()

int dict_set_int32 ( dict_t this,
char *  key,
int32_t  val 
)

Definition at line 1837 of file dict.c.

References data_destroy(), data_from_int32(), dict_set(), and err.

Referenced by __dht_rebalance_create_dst_file(), __dht_rebalance_migrate_data(), __ec_heal_name(), __glusterd_mgmt_hndsk_version_cbk(), __glusterd_mgmt_hndsk_versions(), _add_hxlator_to_dict(), _subvol_to_subvolid(), bitd_compare_ckum(), br_collect_bad_objects_from_children(), br_stub_fd_versioning(), br_stub_handle_object_signature(), br_stub_mark_xdata_bad_object(), cli_add_key_group(), cli_cmd_bitrot_parse(), cli_cmd_ganesha_parse(), cli_cmd_gsync_set_parse(), cli_cmd_inode_quota_parse(), cli_cmd_peer_deprobe_cbk(), cli_cmd_quota_handle_list_all(), cli_cmd_quota_parse(), cli_cmd_snapshot_parse(), cli_cmd_sync_volume_cbk(), cli_cmd_sys_exec_cbk(), cli_cmd_umount_cbk(), cli_cmd_volume_add_brick_cbk(), cli_cmd_volume_add_brick_parse(), cli_cmd_volume_create_cbk(), cli_cmd_volume_create_parse(), cli_cmd_volume_defrag_parse(), cli_cmd_volume_heal_options_parse(), cli_cmd_volume_profile_parse(), cli_cmd_volume_remove_brick_parse(), cli_cmd_volume_reset_brick_cbk(), cli_cmd_volume_reset_parse(), cli_cmd_volume_set_parse(), cli_cmd_volume_start_cbk(), cli_cmd_volume_statedump_options_parse(), cli_cmd_volume_status_parse(), cli_cmd_volume_stop_cbk(), cli_cmd_volume_top_parse(), cli_rpc_init(), cli_snap_activate_parse(), cli_snap_clone_parse(), cli_snap_config_limit_parse(), cli_snap_config_parse(), cli_snap_create_parse(), cli_snap_delete_parse(), cli_snap_info_parse(), cli_snap_status_parse(), client3_3_lookup_cbk(), dht_dir_heal_xattrs(), dht_do_readdir(), dht_fill_dict_to_avoid_unlink_of_migrating_file(), dht_migrate_file(), dht_opendir(), dht_readdirp_cbk(), dht_selfheal_dir_mkdir_lock_cbk(), ec_create_name(), ec_get_size_version(), ec_shd_index_sweep(), ec_xl_op(), fdentry_dump_to_dict(), fdtable_dump_to_dict(), gd_add_brick_snap_details_to_dict(), gd_syncop_mgmt_brick_op(), gf_client_dump_fdtables_to_dict(), gf_client_dump_inodes_to_dict(), gf_defrag_handle_hardlink(), gf_defrag_status_get(), gf_fix_layout_tier_attach_lookup(), gf_proc_dump_call_frame_to_dict(), gf_proc_dump_call_stack_to_dict(), gf_proc_dump_mem_info_to_dict(), gf_proc_dump_mempool_info_to_dict(), gf_proc_dump_pending_frames_to_dict(), glfs_get_volume_info_rpc(), glfs_volfile_fetch(), glfsh_heal_from_bigger_file_or_mtime(), glfsh_heal_from_brick(), glfsh_print_pending_heals(), glusterd_add_brick_status_to_dict(), glusterd_add_missed_snaps_to_export_dict(), glusterd_add_snap_to_dict(), glusterd_add_snapd_to_dict(), glusterd_add_snapshots_to_export_dict(), glusterd_merge_brick_status(), glusterd_mgmt_v3_initiate_all_phases(), glusterd_mgmt_v3_initiate_all_phases_with_brickop_phase(), glusterd_op_begin_synctask(), glusterd_op_copy_file(), glusterd_op_stage_gsync_create(), glusterd_op_sys_exec(), glusterd_read_status_file(), glusterd_shdsvc_reconfigure(), glusterd_snap_create_use_rsp_dict(), glusterd_snapshot_get_snapvol_detail(), glusterfs_handle_node_status(), glusterfs_volfile_fetch_one(), inode_dump_to_dict(), io_stats_dump_global_to_dict(), iot_getxattr(), marker_rename(), marker_unlink(), mgmt_rpc_notify(), migrate_special_files(), nfs_priv_to_dict(), notify(), parse_ssh_port(), pl_inodelk_xattr_fill_each(), posix_rchecksum(), posix_set_mode_in_dict(), and server_setvolume().

◆ dict_set_int32n()

int dict_set_int32n ( dict_t this,
char *  key,
const int  keylen,
int32_t  val 
)

Definition at line 1817 of file dict.c.

References data_destroy(), data_from_int32(), dict_setn(), and err.

Referenced by __glusterd_brick_op_cbk(), __glusterd_handle_add_brick(), __glusterd_handle_cli_heal_volume(), __glusterd_handle_cli_list_volume(), __glusterd_handle_remove_brick(), _add_remove_bricks_to_dict(), _add_task_to_dict(), afr_shd_dict_add_crawl_event(), afr_xl_op(), cli_snap_create_parse(), force_push_pem_no_verify_parse(), gd_add_friend_to_dict(), gd_add_peer_detail_to_dict(), gd_add_peer_hostnames_to_dict(), glusterd_ac_friend_probe(), glusterd_ac_send_friend_update(), glusterd_ac_update_friend(), glusterd_add_arbiter_info_to_bricks(), glusterd_add_brick_to_dict(), glusterd_add_missed_snaps_to_dict(), glusterd_add_node_to_dict(), glusterd_add_shd_to_dict(), glusterd_add_volume_detail_to_dict(), glusterd_add_volume_to_dict(), glusterd_add_volumes_to_export_dict(), glusterd_aggregate_task_status(), glusterd_append_status_dicts(), glusterd_bitrot_volume_node_rsp(), glusterd_brick_op_build_payload(), glusterd_brick_op_prerequisites(), glusterd_bricks_select_heal_volume(), glusterd_broadcast_friend_delete(), glusterd_compare_friend_volume(), glusterd_conn_init(), glusterd_defrag_volume_node_rsp(), glusterd_dict_set_skip_cliot_key(), glusterd_get_all_snapshot_status(), glusterd_get_all_volnames(), glusterd_get_default_val_for_volopt(), glusterd_get_each_snap_object_status(), glusterd_get_gfid_from_brick(), glusterd_get_global_options_for_all_vols(), glusterd_get_single_brick_status(), glusterd_get_single_snap_status(), glusterd_get_snap_status_of_volume(), glusterd_get_volume_opts(), glusterd_get_volumes(), glusterd_handle_heal_options_enable_disable(), glusterd_handle_snapshot_config(), glusterd_handle_snapshot_delete_all(), glusterd_handle_snapshot_info(), glusterd_handle_snapshot_restore(), glusterd_list_friends(), glusterd_max_opversion_use_rsp_dict(), glusterd_mgmt_v3_initiate_replace_brick_cmd_phases(), glusterd_mgmt_v3_initiate_snap_phases(), glusterd_muxsvc_conn_init(), glusterd_op_build_payload(), glusterd_op_get_max_opversion(), glusterd_op_remove_brick(), glusterd_op_send_cli_response(), glusterd_op_stage_add_brick(), glusterd_op_stage_create_volume(), glusterd_op_stage_replace_brick(), glusterd_op_stage_start_volume(), glusterd_op_status_volume(), glusterd_op_sync_volume(), glusterd_print_client_details(), glusterd_profile_volume_brick_rsp(), glusterd_profile_volume_use_rsp_dict(), glusterd_rb_use_rsp_dict(), glusterd_rebalance_rsp(), glusterd_reset_brick_prevalidate(), glusterd_schedule_brick_snapshot(), glusterd_sm_tr_log_add_to_dict(), glusterd_snap_create_clone_pre_val_use_rsp_dict(), glusterd_snap_restore_use_rsp_dict(), glusterd_snapshot_get_all_snap_info(), glusterd_snapshot_get_all_snapnames(), glusterd_snapshot_get_info_by_volume(), glusterd_snapshot_get_snap_detail(), glusterd_snapshot_get_snapvol_detail(), glusterd_snapshot_get_vol_snapnames(), glusterd_snapshot_get_volnames_uuids(), glusterd_snapshot_restore_prevalidate(), glusterd_snapshot_status_commit(), glusterd_status_volume_brick_rsp(), glusterd_status_volume_client_list(), glusterd_sys_exec_output_rsp_dict(), glusterd_take_brick_snapshot_task(), glusterd_transport_inet_options_build(), glusterd_vol_add_quota_conf_to_dict(), glusterd_volume_bitrot_scrub_use_rsp_dict(), glusterd_volume_quota_copy_to_op_ctx_dict(), glusterd_volume_rebalance_use_rsp_dict(), glusterd_volume_status_aggregate_tasks_status(), glusterd_volume_status_copy_to_op_ctx_dict(), io_stats_dump_stats_to_dict(), rb_update_dstbrick_port(), and reassign_defrag_status().

◆ dict_set_int64()

◆ dict_set_int8()

◆ dict_set_mdata()

int dict_set_mdata ( dict_t this,
char *  key,
struct mdata_iatt mdata,
bool  is_static 
)

Definition at line 2687 of file dict.c.

References dict_set_bin_common(), and GF_DATA_TYPE_MDATA.

Referenced by gf_utime_set_mdata_lookup_cbk(), and xdr_to_dict().

◆ dict_set_nstrn()

◆ dict_set_option()

int dict_set_option ( dict_t this,
char *  key,
char *  str 
)

◆ dict_set_static_bin()

◆ dict_set_static_ptr()

◆ dict_set_str()

int dict_set_str ( dict_t this,
char *  key,
char *  str 
)

Definition at line 2410 of file dict.c.

References data_destroy(), dict_set(), err, and str_to_data().

Referenced by __dht_rebalance_create_dst_file(), __dht_rebalance_open_src_file(), __server_getspec(), acl3svc_init(), afr_changelog_fsync(), cli_cmd_bitrot_parse(), cli_cmd_brick_op_validate_bricks(), cli_cmd_copy_file_cbk(), cli_cmd_ganesha_parse(), cli_cmd_get_state_parse(), cli_cmd_getspec_cbk(), cli_cmd_gsync_set_parse(), cli_cmd_inode_quota_parse(), cli_cmd_log_filename_parse(), cli_cmd_log_level_parse(), cli_cmd_log_locate_parse(), cli_cmd_log_rotate_parse(), cli_cmd_peer_deprobe_cbk(), cli_cmd_peer_probe_cbk(), cli_cmd_pmap_b2p_cbk(), cli_cmd_quota_handle_list_all(), cli_cmd_quota_parse(), cli_cmd_sync_volume_cbk(), cli_cmd_sys_exec_cbk(), cli_cmd_umount_cbk(), cli_cmd_volume_add_brick_parse(), cli_cmd_volume_barrier_cbk(), cli_cmd_volume_clearlocks_cbk(), cli_cmd_volume_create_parse(), cli_cmd_volume_defrag_parse(), cli_cmd_volume_delete_cbk(), cli_cmd_volume_heal_options_parse(), cli_cmd_volume_profile_parse(), cli_cmd_volume_remove_brick_parse(), cli_cmd_volume_rename_cbk(), cli_cmd_volume_replace_brick_parse(), cli_cmd_volume_reset_brick_parse(), cli_cmd_volume_reset_parse(), cli_cmd_volume_set_parse(), cli_cmd_volume_start_cbk(), cli_cmd_volume_statedump_cbk(), cli_cmd_volume_status_parse(), cli_cmd_volume_stop_cbk(), cli_cmd_volume_top_parse(), cli_quotad_clnt_rpc_init(), cli_rpc_init(), cli_snap_activate_parse(), cli_snap_clone_parse(), cli_snap_config_parse(), cli_snap_create_parse(), cli_snap_deactivate_parse(), cli_snap_delete_parse(), cli_snap_info_parse(), cli_snap_list_parse(), cli_snap_restore_parse(), cli_snap_status_parse(), client_pre_writev(), client_pre_writev_v2(), client_setvolume(), config_parse(), dht_guard_parent_layout_and_namespace(), dht_linkfile_create(), dht_linkinfo_getxattr_cbk(), dht_migrate_file(), dht_mkdir_helper(), dht_selfheal_dir_xattr_persubvol(), ec_heal_inspect(), ec_heal_op(), ec_lock_insert(), ec_make_internal_fop_xdata(), ec_set_heal_info(), gd_add_brick_snap_details_to_dict(), generate_client_volfiles(), generate_dummy_client_volfiles(), gf_add_cmdline_options(), gf_defrag_handle_hardlink(), gf_defrag_start_crawl(), gf_proc_dump_call_frame_to_dict(), gf_proc_dump_call_stack_to_dict(), gf_proc_dump_mempool_info_to_dict(), gf_svc_readdir_on_special_dir(), gf_svc_special_dir_revalidate_lookup(), gf_worm_set_xattr(), glfs_get_volume_info_rpc(), glfsh_heal_from_brick(), glusterd_add_snapd_to_dict(), glusterd_bitdsvc_start(), glusterd_check_restart_gsync_session(), glusterd_compare_friend_snapshots(), glusterd_get_slave_details_confpath(), glusterd_new_shd_svc_start(), glusterd_op_gsync_create(), glusterd_op_gsync_set(), glusterd_op_set_all_volume_options(), glusterd_op_set_ganesha(), glusterd_op_stage_gsync_create(), glusterd_op_stage_gsync_set(), glusterd_op_start_volume(), glusterd_options_init(), glusterd_scrubsvc_start(), glusterd_shdsvc_create_volfile(), glusterd_shdsvc_reconfigure(), glusterd_snap_config_use_rsp_dict(), glusterd_store_retrieve_node_state(), glusterd_store_update_volinfo(), glusterfs_handle_node_status(), glusterfs_rebalance_event_notify(), init(), main(), mgmt_rpc_notify(), mnt1svc_init(), mnt3svc_init(), nfs_init_state(), nfs_priv_to_dict(), nlm4_establish_callback(), nlm4svc_init(), posix_cs_set_state(), quota_validate(), rpcsvc_auth_init_auths(), rpcsvc_set_allow_insecure(), rpcsvc_transport_unix_options_build(), server4_entrylk_resume(), server4_fentrylk_resume(), server4_finodelk_resume(), server4_inodelk_resume(), server4_readv_cbk(), server_entrylk_resume(), server_fentrylk_resume(), server_finodelk_resume(), server_inodelk_resume(), server_readv_cbk(), server_setvolume(), set_fuse_mount_options(), svs_add_xattrs_to_dict(), svs_get_snapshot_list(), and teardown().

◆ dict_set_strn()

int dict_set_strn ( dict_t this,
char *  key,
const int  keylen,
char *  str 
)

◆ dict_set_uint16()

int dict_set_uint16 ( dict_t this,
char *  key,
uint16_t  val 
)

Definition at line 1927 of file dict.c.

References data_destroy(), data_from_uint16(), dict_set(), and err.

◆ dict_set_uint32()

int dict_set_uint32 ( dict_t this,
char *  key,
uint32_t  val 
)

Definition at line 1972 of file dict.c.

References data_destroy(), data_from_uint32(), dict_set(), and err.

Referenced by _fill_writev_xdata(), _posix_xattr_get_set(), add_cli_cmd_timeout_to_dict(), afr_lookup_xattr_req_prepare(), afr_set_multi_dom_lock_count_request(), afr_shd_dict_add_path(), afr_writev(), arbiter_fill_writev_xdata(), br_stub_lookup(), br_stub_readdirp(), br_trigger_sign(), build_quotad_graph(), build_rebalance_volfile(), cli_cmd_bitrot_parse(), cli_cmd_get_state_parse(), cli_cmd_gsync_set_parse(), cli_cmd_volume_top_parse(), cli_populate_req_dict_for_status(), client_setvolume(), cs_do_stat_check(), cs_download_task(), cs_fstat(), cs_open(), cs_readdirp(), cs_readv(), cs_truncate(), cs_unlink(), dht_do_discover(), dht_do_readdir(), dht_linkfile_create_cbk(), dht_lookup(), dht_opendir(), dht_refresh_layout(), dht_rename_lock_cbk(), dht_rmdir(), dht_rmdir_cached_lookup_cbk(), dht_rmdir_is_subvol_empty(), dht_rmdir_opendir_cbk(), dht_set_dir_xattr_req(), dht_set_file_xattr_req(), dht_writev_cbk(), ec_dict_data_max32(), ec_getxattr_heal_cbk(), fdtable_dump_to_dict(), gd_add_vol_snap_details_to_dict(), gd_set_commit_hash(), generate_client_volfiles(), generate_dummy_client_volfiles(), gf_cli_status_volume_all(), gf_defrag_process_dir(), gf_defrag_settle_hash(), gf_defrag_start_crawl(), gfproxy_server_graph_builder(), glusterd_add_volume_to_dict(), glusterd_compare_snap(), glusterd_generate_client_per_brick_volfile(), glusterd_op_stage_set_volume(), glusterd_op_status_volume(), glusterd_rpcsvc_options_build(), glusterd_shdsvc_create_volfile(), glusterd_shdsvc_reconfigure(), glusterd_vol_add_quota_conf_to_dict(), inode_dump_to_dict(), inode_table_dump_to_dict(), nlc_unlink(), nufa_lookup(), pl_request_link_count(), posix_dict_set_nlink(), posix_fdget_objectsignature(), posix_fgetxattr(), posix_get_objectsignature(), posix_getxattr(), posix_rchecksum(), posix_rename(), posix_unlink_gfid_handle_and_entry(), prepare_bitrot_scrub_volume_options(), prepare_shd_volume_options(), quotad_aggregator_lookup(), server_priv_to_dict(), server_setvolume(), set_fuse_mount_options(), shard_common_inode_write_do(), switch_lookup(), and trash_unlink_rename_cbk().

◆ dict_set_uint64()

◆ dict_setn()

◆ dict_unref()

void dict_unref ( dict_t dict)

Definition at line 734 of file dict.c.

References dict_destroy(), GF_ATOMIC_DEC, GF_LOG_DEBUG, gf_msg_callingfn, and LG_MSG_INVALID_ARG.

Referenced by __afr_can_skip_data_block_heal(), __afr_dir_write_finalize(), __afr_inode_write_finalize(), __afr_selfheal_metadata_do(), __afr_selfheal_metadata_mark_pending_xattrs(), __dht_check_free_space(), __dht_rebalance_create_dst_file(), __dht_rebalance_migrate_data(), __dht_rebalance_open_src_file(), __ec_destroy_private(), __ec_fd_data_adjust_versions(), __ec_heal_data_prepare(), __ec_heal_entry_prepare(), __ec_heal_mark_sinks(), __ec_heal_metadata(), __ec_heal_metadata_prepare(), __ec_heal_name(), __gf_quiesce_perform_failover(), __glusterd_brick_op_cbk(), __glusterd_commit_op_cbk(), __glusterd_handle_cli_deprobe(), __glusterd_handle_cli_get_volume(), __glusterd_handle_cli_list_friends(), __glusterd_handle_cli_list_volume(), __glusterd_handle_cli_uuid_get(), __glusterd_handle_cluster_lock(), __glusterd_handle_friend_update(), __glusterd_handle_fsm_log(), __glusterd_handle_ganesha_cmd(), __glusterd_handle_get_state(), __glusterd_handle_get_vol_opt(), __glusterd_handle_mount(), __glusterd_handle_stage_op(), __glusterd_mgmt_hndsk_version_cbk(), __glusterd_mgmt_hndsk_versions(), __glusterd_mgmt_hndsk_versions_ack(), __glusterd_send_svc_configure_req(), __glusterd_stage_op_cbk(), __server_event_notify(), __server_get_snap_info(), __server_get_volume_info(), __server_getspec(), __shard_delete_shards_of_entry(), _afr_fav_child_reset_sink_xattrs(), _afr_handle_empty_brick(), _afr_shd_ta_get_xattrs(), _export_dir_deinit(), _exports_file_init(), _gd_syncop_commit_op_cbk(), _gd_syncop_stage_op_cbk(), _mq_get_metadata(), _netgroup_entry_deinit(), acl3_setacl_resume(), acl3svc_init(), afr_changelog_do(), afr_changelog_fsync(), afr_changelog_populate_xdata(), afr_changelog_post_op_do(), afr_changelog_pre_op(), afr_fgetxattr_clrlk_cbk(), afr_fgetxattr_lockinfo_cbk(), afr_fgetxattr_pathinfo_cbk(), afr_fop_lock_proceed(), afr_get_heal_info(), afr_get_split_brain_status(), afr_getxattr_clrlk_cbk(), afr_getxattr_lockinfo_cbk(), afr_getxattr_pathinfo_cbk(), afr_heal_splitbrain_file(), afr_inode_refresh_do(), afr_ipc_cbk(), afr_lk_heal_info_cleanup(), afr_local_cleanup(), afr_local_transaction_cleanup(), afr_lookup_and_heal_gfid(), afr_lookup_sh_metadata_wrap(), afr_mark_new_entry_changelog(), afr_pick_error_xdata(), afr_reply_copy(), afr_reply_wipe(), afr_selfheal_entry_dirent(), afr_selfheal_name_do(), afr_selfheal_newentry_mark(), afr_selfheal_output_xattr(), afr_selfheal_recreate_entry(), afr_selfheal_undo_pending(), afr_selfheal_unlocked_discover_on(), afr_selfheal_unlocked_lookup_on(), afr_set_heal_info(), afr_shd_entry_changes_index_inode(), afr_shd_get_index_count(), afr_shd_index_healer(), afr_shd_index_inode(), afr_shd_index_sweep(), afr_shd_inode_find(), afr_shd_ta_check_and_unset_xattrs(), afr_shd_ta_get_xattrs(), afr_shd_ta_needs_heal(), afr_shd_ta_unset_xattrs(), afr_shd_zero_xattrop(), afr_statfs_cbk(), afr_ta_id_file_check(), afr_ta_post_op_do(), afr_ta_read_txn(), afr_unlock_locks_and_proceed(), arbiter_writev(), args_cbk_wipe(), args_wipe(), auth_cache_purge(), bitd_compare_ckum(), bitd_fetch_signature(), bitd_is_bad_file(), bitd_oneshot_crawl(), bitd_scrub_post_compute_check(), bitd_signature_staleness(), br_brick_connect(), br_collect_bad_objects_from_children(), br_object_read_sign(), br_read_bad_object_dir(), br_stub_fd_versioning(), br_stub_handle_object_signature(), br_stub_lookup(), br_stub_lookup_wrapper(), br_stub_perform_incversioning(), br_stub_perform_objsign(), br_stub_readdir_wrapper(), br_stub_readdirp(), br_stub_send_ipc_fop(), br_stub_send_stub_init_time(), br_trigger_sign(), build_bitd_volume_graph(), build_graph_generic(), build_quotad_graph(), build_rebalance_volfile(), build_scrub_volume_graph(), build_shd_graph(), changelog_rpc_client_init(), changelog_rpc_server_init(), cli_cmd_bitrot_parse(), cli_cmd_ganesha_parse(), cli_cmd_get_state_parse(), cli_cmd_getspec_cbk(), cli_cmd_gsync_set_parse(), cli_cmd_inode_quota_parse(), cli_cmd_log_filename_parse(), cli_cmd_log_level_parse(), cli_cmd_log_locate_parse(), cli_cmd_log_rotate_parse(), cli_cmd_mount_cbk(), cli_cmd_pmap_b2p_cbk(), cli_cmd_quota_cbk(), cli_cmd_quota_handle_list_all(), cli_cmd_quota_parse(), cli_cmd_snapshot_parse(), cli_cmd_sys_exec_cbk(), cli_cmd_umount_cbk(), cli_cmd_uuid_get_cbk(), cli_cmd_volume_add_brick_parse(), cli_cmd_volume_clrlks_opts_parse(), cli_cmd_volume_create_parse(), cli_cmd_volume_defrag_parse(), cli_cmd_volume_heal_cbk(), cli_cmd_volume_heal_options_parse(), cli_cmd_volume_profile_parse(), cli_cmd_volume_remove_brick_cbk(), cli_cmd_volume_remove_brick_parse(), cli_cmd_volume_rename_cbk(), cli_cmd_volume_replace_brick_parse(), cli_cmd_volume_reset_brick_parse(), cli_cmd_volume_reset_parse(), cli_cmd_volume_set_parse(), cli_cmd_volume_statedump_options_parse(), cli_cmd_volume_status_parse(), cli_cmd_volume_stop_cbk(), cli_cmd_volume_top_parse(), cli_local_wipe(), cli_quotad_clnt_rpc_init(), cli_quotad_getlimit_cbk(), cli_rpc_init(), client3_3_access_cbk(), client3_3_create_cbk(), client3_3_discard_cbk(), client3_3_entrylk_cbk(), client3_3_fallocate_cbk(), client3_3_fentrylk_cbk(), client3_3_fgetxattr_cbk(), client3_3_finodelk_cbk(), client3_3_flush_cbk(), client3_3_fremovexattr_cbk(), client3_3_fsetattr_cbk(), client3_3_fsetxattr_cbk(), client3_3_fstat_cbk(), client3_3_fsync_cbk(), client3_3_fsyncdir_cbk(), client3_3_ftruncate_cbk(), client3_3_fxattrop_cbk(), client3_3_getactivelk_cbk(), client3_3_getxattr(), client3_3_getxattr_cbk(), client3_3_inodelk_cbk(), client3_3_ipc_cbk(), client3_3_lease_cbk(), client3_3_link_cbk(), client3_3_lk_cbk(), client3_3_lookup_cbk(), client3_3_mkdir_cbk(), client3_3_mknod_cbk(), client3_3_open_cbk(), client3_3_opendir_cbk(), client3_3_rchecksum_cbk(), client3_3_readdir_cbk(), client3_3_readdirp_cbk(), client3_3_readlink_cbk(), client3_3_readv_cbk(), client3_3_removexattr_cbk(), client3_3_rename_cbk(), client3_3_rmdir_cbk(), client3_3_seek_cbk(), client3_3_setactivelk_cbk(), client3_3_setattr_cbk(), client3_3_setxattr_cbk(), client3_3_stat_cbk(), client3_3_statfs_cbk(), client3_3_symlink_cbk(), client3_3_truncate_cbk(), client3_3_unlink_cbk(), client3_3_writev_cbk(), client3_3_xattrop_cbk(), client3_3_zerofill_cbk(), client4_0_access_cbk(), client4_0_copy_file_range_cbk(), client4_0_create_cbk(), client4_0_discard_cbk(), client4_0_entrylk_cbk(), client4_0_fallocate_cbk(), client4_0_fentrylk_cbk(), client4_0_fgetxattr_cbk(), client4_0_finodelk_cbk(), client4_0_flush_cbk(), client4_0_fremovexattr_cbk(), client4_0_fsetattr_cbk(), client4_0_fsetxattr_cbk(), client4_0_fstat_cbk(), client4_0_fsync_cbk(), client4_0_fsyncdir_cbk(), client4_0_ftruncate_cbk(), client4_0_fxattrop_cbk(), client4_0_getactivelk_cbk(), client4_0_getxattr(), client4_0_getxattr_cbk(), client4_0_inodelk_cbk(), client4_0_ipc_cbk(), client4_0_lease_cbk(), client4_0_link_cbk(), client4_0_lk_cbk(), client4_0_lookup_cbk(), client4_0_mkdir_cbk(), client4_0_mknod_cbk(), client4_0_open_cbk(), client4_0_opendir_cbk(), client4_0_put_cbk(), client4_0_readdir_cbk(), client4_0_readdirp_cbk(), client4_0_readlink_cbk(), client4_0_readv_cbk(), client4_0_removexattr_cbk(), client4_0_rename_cbk(), client4_0_rmdir_cbk(), client4_0_seek_cbk(), client4_0_setactivelk_cbk(), client4_0_setattr_cbk(), client4_0_setxattr_cbk(), client4_0_stat_cbk(), client4_0_statfs_cbk(), client4_0_symlink_cbk(), client4_0_truncate_cbk(), client4_0_unlink_cbk(), client4_0_writev_cbk(), client4_0_xattrop_cbk(), client4_0_zerofill_cbk(), client4_icreate_cbk(), client4_namelink_cbk(), client4_rchecksum_cbk(), client_cbk_cache_invalidation(), client_cbk_entrylk_contention(), client_cbk_inodelk_contention(), client_cbk_recall_lease(), client_setvolume_cbk(), cluster_marker_unwind(), cs_download_task(), cs_local_wipe(), dht_common_mark_mdsxattr(), dht_dir_common_set_remove_xattr(), dht_dir_heal_xattrs(), dht_discover_complete(), dht_fini(), dht_getxattr_get_real_filename_cbk(), dht_heal_full_path(), dht_linkfile_attr_heal(), dht_linkfile_create(), dht_linkfile_create_cbk(), dht_local_wipe(), dht_lookup_directory(), dht_lookup_everywhere_cbk(), dht_migrate_file(), dht_migration_complete_check_task(), dht_opendir(), dht_pt_mkdir(), dht_pt_rename(), dht_rebalance_inprogress_task(), dht_remove_stale_linkto(), dht_rename_cleanup(), dht_rename_create_links(), dht_rename_linkto_cbk(), dht_rename_lock_cbk(), dht_rename_unlink(), dht_rmdir(), dht_rmdir_cached_lookup_cbk(), dht_rmdir_is_subvol_empty(), dht_rmdir_opendir_cbk(), dht_selfheal_dir_mkdir_lookup_cbk(), dht_selfheal_dir_mkdir_lookup_done(), dht_selfheal_dir_xattr_persubvol(), dht_selfheal_directory(), dht_setxattr_non_mds_cbk(), dht_update_commit_hash_for_layout_resume(), dht_vgetxattr_cbk(), dht_vgetxattr_dir_cbk(), do_xattrop(), ec_adjust_versions(), ec_cbk_data_destroy(), ec_create_name(), ec_dict_data_merge(), ec_fop_data_release(), ec_get_real_size(), ec_get_size_version(), ec_getxattr_heal_cbk(), ec_handle_heal_commands(), ec_heal_data_find_direction(), ec_heal_inspect(), ec_heal_set_dirty_without_lock(), ec_make_internal_fop_xdata(), ec_set_heal_info(), ec_set_new_entry_dirty(), ec_shd_index_inode(), ec_shd_index_sweep(), ec_shd_selfheal(), ec_update_size_version(), ec_writev_start(), exp_file_deinit(), fetch_pathinfo(), fini(), free_fuse_state(), free_state(), fuse_first_lookup(), fuse_migrate_fd(), fuse_migrate_locks(), fuse_nameless_lookup(), fuse_setlk_cbk(), fuse_setlk_interrupt_handler(), fuse_setlk_interrupt_handler_cbk(), ga_heal_entry(), ga_new_entry(), ga_newentry_cbk(), ga_newentry_lookup_cbk(), gd_brick_op_phase(), gd_commit_op_phase(), gd_import_friend_volume_rebal_dict(), gd_mgmt_v3_brick_op_cbk_fn(), gd_mgmt_v3_commit_cbk_fn(), gd_mgmt_v3_pre_validate_cbk_fn(), gd_stage_op_phase(), gd_sync_task_begin(), gd_syncop_mgmt_brick_op(), generate_client_volfiles(), generate_dummy_client_volfiles(), get_fop_attr_glfd(), get_fop_attr_thrd_key(), gf_cli3_1_uuid_get_cbk(), gf_cli3_remove_brick_status_cbk(), gf_cli_bitrot_cbk(), gf_cli_clearlocks_volume_cbk(), gf_cli_copy_file_cbk(), gf_cli_create_volume_cbk(), gf_cli_defrag_volume_cbk(), gf_cli_delete_volume_cbk(), gf_cli_fsm_log_cbk(), gf_cli_ganesha_cbk(), gf_cli_get_state_cbk(), gf_cli_get_vol_opt_cbk(), gf_cli_get_volume(), gf_cli_get_volume_cbk(), gf_cli_getspec(), gf_cli_gsync_set_cbk(), gf_cli_heal_volume_cbk(), gf_cli_list_friends_cbk(), gf_cli_list_volume_cbk(), gf_cli_profile_volume_cbk(), gf_cli_quota_cbk(), gf_cli_remove_brick_cbk(), gf_cli_replace_brick_cbk(), gf_cli_reset_brick_cbk(), gf_cli_set_volume_cbk(), gf_cli_snapshot_cbk(), gf_cli_snapshot_for_delete(), gf_cli_snapshot_for_status(), gf_cli_start_volume_cbk(), gf_cli_status_cbk(), gf_cli_status_volume_all(), gf_cli_stop_volume_cbk(), gf_cli_sys_exec_cbk(), gf_cli_top_volume_cbk(), gf_defrag_handle_hardlink(), gf_defrag_process_dir(), gf_defrag_start_crawl(), gf_dirent_entry_free(), gf_dnscache_deinit(), gf_fix_layout_tier_attach_lookup(), gf_quiesce_local_wipe(), gf_svc_getxattr(), gf_svc_lookup(), gf_svc_readdir_on_special_dir(), gf_svc_special_dir_revalidate_lookup(), gf_utime_lookup(), gf_utime_set_mdata_lookup_cbk(), gf_worm_set_xattr(), gf_worm_state_transition(), glfs_get_volume_info_rpc(), glfs_mgmt_getspec_cbk(), glfs_mgmt_init(), glfs_migrate_fd_locks_safe(), glfs_migrate_fd_safe(), glfs_resolve_component(), glfs_volfile_fetch(), glfsh_get_index_dir_loc(), glfsh_heal_from_bigger_file_or_mtime(), glfsh_heal_from_brick(), glfsh_heal_splitbrain_file(), glfsh_print_pending_heals(), glfsh_process_entries(), glusterd_ac_friend_probe(), glusterd_ac_send_friend_update(), glusterd_ac_update_friend(), glusterd_bitdsvc_start(), glusterd_brick_connect(), glusterd_broadcast_friend_delete(), glusterd_clear_txn_opinfo(), glusterd_compare_friend_snapshots(), glusterd_conn_init(), glusterd_destroy_friend_req_ctx(), glusterd_destroy_req_ctx(), glusterd_dict_searialize(), glusterd_friend_rpc_create(), glusterd_generate_client_per_brick_volfile(), glusterd_get_args_from_dict(), glusterd_get_state(), glusterd_get_statefile_name(), glusterd_get_volumes(), glusterd_gsync_op_already_set(), glusterd_handle_brick_op_fn(), glusterd_handle_commit_fn(), glusterd_handle_friend_req(), glusterd_handle_mgmt_v3_lock_fn(), glusterd_handle_mgmt_v3_unlock_fn(), glusterd_handle_post_validate_fn(), glusterd_handle_pre_validate_fn(), glusterd_hooks_stub_cleanup(), glusterd_import_friend_snap(), glusterd_import_friend_volumes_synctask(), glusterd_import_global_opts(), glusterd_init_uds_listener(), glusterd_list_friends(), glusterd_mgmt_handshake(), glusterd_mgmt_v3_brick_op(), glusterd_mgmt_v3_commit(), glusterd_mgmt_v3_initiate_all_phases(), glusterd_mgmt_v3_initiate_all_phases_with_brickop_phase(), glusterd_mgmt_v3_initiate_replace_brick_cmd_phases(), glusterd_mgmt_v3_initiate_snap_phases(), glusterd_mgmt_v3_lock_fini(), glusterd_mgmt_v3_lock_peers(), glusterd_mgmt_v3_lock_timer_fini(), glusterd_mgmt_v3_post_validate(), glusterd_mgmt_v3_pre_validate(), glusterd_mgmt_v3_unlock_peers(), glusterd_muxsvc_conn_init(), glusterd_new_shd_svc_start(), glusterd_op_ac_brick_op_failed(), glusterd_op_ac_commit_op(), glusterd_op_ac_lock(), glusterd_op_ac_rcvd_brick_op_acc(), glusterd_op_ac_send_commit_op(), glusterd_op_ac_send_lock(), glusterd_op_ac_send_stage_op(), glusterd_op_ac_send_unlock(), glusterd_op_ac_stage_op(), glusterd_op_ac_unlock(), glusterd_op_build_payload(), glusterd_op_free_ctx(), glusterd_op_remove_brick(), glusterd_op_reset_all_volume_options(), glusterd_op_set_all_volume_options(), glusterd_op_stage_set_volume(), glusterd_op_txn_begin(), glusterd_perform_missed_op(), glusterd_print_client_details(), glusterd_print_gsync_status_by_vol(), glusterd_quotadsvc_start(), glusterd_read_status_file(), glusterd_rebalance_rpc_create(), glusterd_req_ctx_create(), glusterd_rpc_friend_add(), glusterd_scrubsvc_start(), glusterd_shdsvc_create_volfile(), glusterd_shdsvc_reconfigure(), glusterd_snap_cleanup(), glusterd_store_retrieve_node_state(), glusterd_to_cli(), glusterd_txn_opinfo_dict_fini(), glusterd_update_snaps_synctask(), glusterd_volinfo_delete(), glusterd_volinfo_new(), glusterd_xfer_cli_probe_resp(), glusterfs_handle_barrier(), glusterfs_handle_bitrot(), glusterfs_handle_brick_status(), glusterfs_handle_defrag(), glusterfs_handle_nfs_profile(), glusterfs_handle_node_status(), glusterfs_handle_svc_attach(), glusterfs_handle_translator_info_get(), glusterfs_handle_translator_op(), glusterfs_handle_volume_barrier_op(), glusterfs_listener_init(), glusterfs_mgmt_init(), glusterfs_terminate_response_send(), glusterfs_volfile_fetch_one(), index_fstat_cbk(), index_getxattr_wrapper(), index_lookup_cbk(), index_lookup_wrapper(), index_make_xattrop_watchlist(), init(), io_stats_dump_global_to_json_logfp(), ioc_cache_validate_cbk(), ioc_fault_cbk(), ioc_frame_unwind(), iot_getxattr(), is_geo_rep_active(), is_wormfile(), make_seq_dict(), marker_getxattr_stampfile_cbk(), marker_local_unref(), marker_lookup(), marker_lookup_cbk(), marker_readdirp(), marker_start_setxattr(), marker_unlink(), mdc_dict_update(), mdc_fgetxattr(), mdc_fremovexattr(), mdc_fsetattr(), mdc_fstat(), mdc_getxattr(), mdc_inode_wipe(), mdc_inode_xatt_set(), mdc_local_wipe(), mdc_lookup(), mdc_opendir(), mdc_readdir(), mdc_readdirp(), mdc_register_xattr_inval(), mdc_removexattr(), mdc_send_xattrs_cbk(), mdc_setattr(), mdc_stat(), meta_local_cleanup(), mgmt_get_snapinfo_cbk(), mgmt_get_volinfo_cbk(), mgmt_getspec_cbk(), migrate_special_files(), mnt1svc_init(), mnt3svc_deinit(), mnt3svc_init(), mq_are_xattrs_set(), mq_build_ancestry(), mq_create_size_xattrs(), mq_get_dirty(), mq_get_set_dirty(), mq_mark_dirty(), mq_update_contri(), mq_update_dirty_inode_task(), mq_update_size(), nfs_fop_local_wipe(), nfs_gfid_dict(), ng_file_deinit(), nlc_getxattr(), nlc_unlink(), nlm4_establish_callback(), nlm4svc_init(), pl_fgetxattr(), pl_fgetxattr_handle_lockinfo(), pl_fsetxattr_handle_lockinfo(), pl_getxattr(), pl_lookup(), pl_request_link_count(), posix_acl_lookup_cbk(), posix_acl_readdirp(), posix_copy_file_range(), posix_create(), posix_fgetxattr(), posix_fremovexattr(), posix_fsetattr(), posix_fsetxattr(), posix_fstat(), posix_getxattr(), posix_lookup(), posix_mkdir(), posix_rchecksum(), posix_removexattr(), posix_rename(), posix_setattr(), posix_setxattr(), posix_stat(), posix_unlink(), posix_writev(), pub_glfs_h_creat(), pub_glfs_h_creat_open(), pub_glfs_h_getxattrs(), pub_glfs_h_mkdir(), pub_glfs_h_mknod(), pub_glfs_h_open(), pub_glfs_h_setxattrs(), pub_glfs_h_symlink(), qr_lookup(), quota_build_ancestry(), quota_enforcer_blocking_connect(), quota_enforcer_lookup_cbk(), quota_local_cleanup(), quota_lookup(), quota_readdirp(), quota_send_dir_limit_to_cli(), quota_statfs_cbk(), quota_validate(), quota_xattr_cleaner(), quotad_aggregator_free_state(), quotad_aggregator_getlimit(), quotad_aggregator_getlimit_cbk(), quotad_aggregator_lookup(), rda_fill_fd_cbk(), rda_local_wipe(), rda_reset_ctx(), resolve_gfid(), resolve_gfid_cbk(), rpc_transport_cleanup(), rpc_transport_destroy(), server3_3_fsetxattr(), server3_3_fxattrop(), server3_3_setxattr(), server3_3_xattrop(), server_cleanup(), server_fini(), server_first_lookup(), server_init(), server_reconfigure(), server_setvolume(), shard_common_lookup_shards(), shard_common_resume_mknod(), shard_create_gfid_dict(), shard_create_marker_file_under_remove_me(), shard_local_wipe(), shard_lookup_internal_dir(), shard_lookup_marker_file(), shard_mkdir_internal_dir(), shard_refresh_base_file(), shard_set_size_attrs_on_marker_file(), shard_truncate_htol(), shard_update_file_size(), socket_server_event_handler(), svc_local_free(), svs_fgetxattr(), svs_get_snapshot_list(), svs_getxattr(), svs_mgmt_init(), syncop_access(), syncop_copy_file_range(), syncop_create(), syncop_discard(), syncop_entrylk(), syncop_fallocate(), syncop_fgetxattr(), syncop_flush(), syncop_fremovexattr(), syncop_fsetattr(), syncop_fsetxattr(), syncop_fstat(), syncop_fsync(), syncop_fsyncdir(), syncop_ftruncate(), syncop_fxattrop(), syncop_getactivelk(), syncop_getxattr(), syncop_gfid_to_path_hard(), syncop_inodelk(), syncop_ipc(), syncop_is_subvol_local(), syncop_lease(), syncop_link(), syncop_listxattr(), syncop_lk(), syncop_lookup(), syncop_mkdir(), syncop_mknod(), syncop_open(), syncop_opendir(), syncop_put(), syncop_readdir(), syncop_readdirp(), syncop_readlink(), syncop_readv(), syncop_removexattr(), syncop_rename(), syncop_rmdir(), syncop_setactivelk(), syncop_setattr(), syncop_setxattr(), syncop_stat(), syncop_statfs(), syncop_symlink(), syncop_truncate(), syncop_unlink(), syncop_write(), syncop_writev(), syncop_xattrop(), syncop_zerofill(), ta_release_fop(), trash_dir_lookup_cbk(), trash_internalop_dir_lookup_cbk(), trash_unlink_rename_cbk(), unset_fop_attr(), up_fremovexattr(), up_removexattr(), upcall_local_wipe(), validate_brickopts(), worm_get_state(), worm_init_state(), worm_release(), xdr_to_dict(), xlator_mem_free(), and xlator_members_free().

◆ dict_unserialize()

int32_t dict_unserialize ( char *  orig_buf,
int32_t  size,
dict_t **  fill 
)

dict_unserialize - unserialize a buffer into a dict

@buf: buf containing serialized dict @size: size of the @buf @fill: dict to fill in

Returns
: success: 0 failure: -errno

Definition at line 3075 of file dict.c.

References _gf_false, _data::data, _data::data_type, dict_addn(), DICT_DATA_HDR_KEY_LEN, DICT_DATA_HDR_VAL_LEN, DICT_HDR_LEN, get_new_data(), GF_DATA_TYPE_STR_OLD, GF_LOG_ERROR, GF_LOG_WARNING, gf_memdup(), gf_msg_callingfn, gf_smsg, _data::is_static, _data::len, LG_MSG_COUNT_LESS_THAN_ZERO, LG_MSG_INVALID_ARG, LG_MSG_UNDERSIZED_BUF, ntoh32, and out.

Referenced by __glusterd_brick_op_cbk(), __glusterd_commit_op_cbk(), __glusterd_handle_add_brick(), __glusterd_handle_barrier(), __glusterd_handle_bitrot(), __glusterd_handle_cli_clearlocks_volume(), __glusterd_handle_cli_delete_volume(), __glusterd_handle_cli_deprobe(), __glusterd_handle_cli_get_volume(), __glusterd_handle_cli_heal_volume(), __glusterd_handle_cli_list_friends(), __glusterd_handle_cli_probe(), __glusterd_handle_cli_profile_volume(), __glusterd_handle_cli_start_volume(), __glusterd_handle_cli_statedump_volume(), __glusterd_handle_cli_stop_volume(), __glusterd_handle_cli_uuid_get(), __glusterd_handle_cli_uuid_reset(), __glusterd_handle_copy_file(), __glusterd_handle_create_volume(), __glusterd_handle_defrag_volume(), __glusterd_handle_friend_update(), __glusterd_handle_ganesha_cmd(), __glusterd_handle_get_state(), __glusterd_handle_get_vol_opt(), __glusterd_handle_gsync_set(), __glusterd_handle_log_rotate(), __glusterd_handle_mount(), __glusterd_handle_quota(), __glusterd_handle_remove_brick(), __glusterd_handle_replace_brick(), __glusterd_handle_reset_volume(), __glusterd_handle_set_volume(), __glusterd_handle_status_volume(), __glusterd_handle_sync_volume(), __glusterd_handle_sys_exec(), __glusterd_stage_op_cbk(), __server_event_notify(), __server_get_snap_info(), __server_get_volume_info(), _gd_syncop_brick_op_cbk(), _gd_syncop_commit_op_cbk(), _gd_syncop_stage_op_cbk(), afr_fgetxattr_lockinfo_cbk(), afr_getxattr_lockinfo_cbk(), cli_quotad_getlimit_cbk(), client_setvolume_cbk(), ec_dict_data_merge(), gd_mgmt_v3_brick_op_cbk_fn(), gd_mgmt_v3_commit_cbk_fn(), gd_mgmt_v3_pre_validate_cbk_fn(), gf_cli3_1_uuid_get_cbk(), gf_cli3_remove_brick_status_cbk(), gf_cli_bitrot_cbk(), gf_cli_clearlocks_volume_cbk(), gf_cli_copy_file_cbk(), gf_cli_create_volume_cbk(), gf_cli_defrag_volume_cbk(), gf_cli_delete_volume_cbk(), gf_cli_fsm_log_cbk(), gf_cli_ganesha_cbk(), gf_cli_get_state_cbk(), gf_cli_get_vol_opt_cbk(), gf_cli_get_volume_cbk(), gf_cli_gsync_set_cbk(), gf_cli_heal_volume_cbk(), gf_cli_list_friends_cbk(), gf_cli_list_volume_cbk(), gf_cli_profile_volume_cbk(), gf_cli_quota_cbk(), gf_cli_remove_brick_cbk(), gf_cli_replace_brick_cbk(), gf_cli_reset_brick_cbk(), gf_cli_set_volume_cbk(), gf_cli_snapshot_cbk(), gf_cli_start_volume_cbk(), gf_cli_status_cbk(), gf_cli_stop_volume_cbk(), gf_cli_sys_exec_cbk(), gf_cli_top_volume_cbk(), glfs_mgmt_getspec_cbk(), glusterd_get_args_from_dict(), glusterd_handle_brick_op_fn(), glusterd_handle_commit_fn(), glusterd_handle_friend_req(), glusterd_handle_mgmt_v3_lock_fn(), glusterd_handle_mgmt_v3_unlock_fn(), glusterd_handle_post_validate_fn(), glusterd_handle_pre_validate_fn(), glusterd_handle_snapshot_fn(), glusterd_import_friend_volumes_synctask(), glusterd_req_ctx_create(), glusterfs_handle_barrier(), glusterfs_handle_bitrot(), glusterfs_handle_brick_status(), glusterfs_handle_defrag(), glusterfs_handle_nfs_profile(), glusterfs_handle_node_status(), glusterfs_handle_svc_attach(), glusterfs_handle_translator_info_get(), glusterfs_handle_translator_op(), glusterfs_handle_volume_barrier_op(), mgmt_get_snapinfo_cbk(), mgmt_get_volinfo_cbk(), mgmt_getspec_cbk(), pl_fsetxattr_handle_lockinfo(), quotad_aggregator_getlimit(), server_setvolume(), and unserialize_rsp_direntp().

◆ int_to_data()

data_t* int_to_data ( int64_t  value)

◆ is_data_equal()

◆ static_bin_to_data()

data_t* static_bin_to_data ( void *  value)

◆ static_str_to_data()

data_t* static_str_to_data ( char *  value)

◆ str_to_data()

data_t* str_to_data ( char *  value)

Definition at line 1001 of file dict.c.

References GF_LOG_WARNING, gf_msg_callingfn, LG_MSG_INVALID_ARG, and strn_to_data().

Referenced by dict_set_str(), and dict_set_strn().

◆ strn_to_data()

data_t* strn_to_data ( char *  value,
const int  vallen 
)
LG_MSG_DICT_UNSERIAL_FAILED
@ LG_MSG_DICT_UNSERIAL_FAILED
Definition: libglusterfs-messages.h:123
LG_MSG_DICT_SERIAL_FAILED
@ LG_MSG_DICT_SERIAL_FAILED
Definition: libglusterfs-messages.h:123
GF_LOG_WARNING
@ GF_LOG_WARNING
Definition: logging.h:74
dict_unserialize
int32_t dict_unserialize(char *buf, int32_t size, dict_t **fill)
Definition: dict.c:3075
name
char * name
Definition: xdr-nfs3.h:948
dict_allocate_and_serialize
int32_t dict_allocate_and_serialize(dict_t *this, char **buf, u_int *length)
Definition: dict.c:3218
dict_new
dict_t * dict_new(void)
Definition: dict.c:107