nfs-ganesha 1.4
Classes | Defines | Typedefs | Functions

NODELIST_NODELIST

Classes

struct  nodelist_nodelist
 structure that represent a range of long int value More...

Defines

#define VERSUS_OPERATION_INCLUDE   1
 Check a nodes list versus another one according to required operation operation can be inclusion or intersection.
#define VERSUS_OPERATION_INTERSECT   2

Typedefs

typedef struct nodelist_nodelist nodelist_nodelist_t
 structure that represent a range of long int value

Functions

int nodelist_nodelist_init (nodelist_nodelist_t *nodelist, char **lists, int lists_nb)
 Initialize a bridge nodes list structure.
int nodelist_nodelist_free_contents (nodelist_nodelist_t *nodelist)
 Free a bridge nodes list structure.
int nodelist_nodelist_add_nodes (nodelist_nodelist_t *nodelist, char *list)
 Add a nodes list to a bridge nodes list structure.
int nodelist_nodelist_versus_second_list (nodelist_nodelist_t *nodelist, nodelist_nodelist_t *second_list, int operation)
long int nodelist_nodelist_nodes_quantity (nodelist_nodelist_t *nodelist)
 Get nodes quantity.
int nodelist_nodelist_get_extended_string (nodelist_nodelist_t *nodelist, char **p_string)
 Get extended nodes string.
int nodelist_nodelist_get_compacted_string (nodelist_nodelist_t *nodelist, char **p_string)
 Get compacted nodes string.
int nodelist_common_condensed2extended_nodelist (char *src_list, char **p_dst_list)
 Get an extended nodes list based on a compacted one.
int nodelist_common_extended2condensed_nodelist (char *src_list, char **p_dst_list)
 Get an compacted nodes list based on a extended one.

Define Documentation

#define VERSUS_OPERATION_INCLUDE   1

Check a nodes list versus another one according to required operation operation can be inclusion or intersection.

Parameters:
nodelistpointer on the first bridge nodes list structure
nodelistpointer on the second bridge nodes list structure
operationon of VERSUS_OPERATION_INCLUDE or VERSUS_OPERATION_INTERSECT
Return values:
0operation successfully done
-1operation failed

Definition at line 499 of file nodelist.h.

#define VERSUS_OPERATION_INTERSECT   2

Definition at line 500 of file nodelist.h.


Typedef Documentation

structure that represent a range of long int value


Function Documentation

int nodelist_common_condensed2extended_nodelist ( char *  src_list,
char **  p_dst_list 
)

Get an extended nodes list based on a compacted one.

Parameters:
src_listcompacted (or not) nodes list
p_dst_listextended nodes list
Return values:
nnodes quantity if operation successfully done
-1operation failed

Definition at line 210 of file nodelist_common.c.

int nodelist_common_extended2condensed_nodelist ( char *  src_list,
char **  p_dst_list 
)

Get an compacted nodes list based on a extended one.

Parameters:
src_listextended (or not) nodes list
p_dst_listcompacted nodes list
Return values:
nnodes quantity if operation successfully done
-1operation failed

Definition at line 164 of file nodelist_common.c.

int nodelist_nodelist_add_nodes ( nodelist_nodelist_t nodelist,
char *  list 
)

Add a nodes list to a bridge nodes list structure.

Parameters:
nodelistpointer on a bridge nodes list structure
listnodes list to add to this bridge nodes list
Return values:
0operation successfully done
-1operation failed

Definition at line 693 of file nodelist.c.

int nodelist_nodelist_free_contents ( nodelist_nodelist_t nodelist)

Free a bridge nodes list structure.

Parameters:
nodelistpointer on a bridge nodes list structure to finalize
Return values:
0operation successfully done
-1operation failed

Definition at line 384 of file nodelist.c.

int nodelist_nodelist_get_compacted_string ( nodelist_nodelist_t nodelist,
char **  p_string 
)

Get compacted nodes string.

Parameters:
nodelistpointer on a bridge nodes list structure
p_stringpointer on a string that will be allocated and filled with compacted nodes list
Return values:
0operation successfully done
-1operation failed

Definition at line 997 of file nodelist.c.

int nodelist_nodelist_get_extended_string ( nodelist_nodelist_t nodelist,
char **  p_string 
)

Get extended nodes string.

Parameters:
nodelistpointer on a bridge nodes list structure
p_stringpointer on a string that will be allocated and filled with nodes names
Return values:
0operation successfully done
-1operation failed

Definition at line 890 of file nodelist.c.

int nodelist_nodelist_init ( nodelist_nodelist_t nodelist,
char **  lists,
int  lists_nb 
)

Initialize a bridge nodes list structure.

Parameters:
nodelistpointer on a bridge nodes list structure to initialize
listsarray of strings containing nodes to add to this list
lists_nbquanity of string in the array
Return values:
0operation successfully done
-1operation failed

Definition at line 323 of file nodelist.c.

long int nodelist_nodelist_nodes_quantity ( nodelist_nodelist_t nodelist)

Get nodes quantity.

Parameters:
nodelistpointer on a bridge nodes list structure
Return values:
quantityof nodes in this bridge nodes list

Definition at line 872 of file nodelist.c.

int nodelist_nodelist_versus_second_list ( nodelist_nodelist_t nodelist,
nodelist_nodelist_t second_list,
int  operation 
)