nfs-ganesha 1.4
Classes | Typedefs | Functions

NODELIST_RANGES_ARRAY

Classes

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

Typedefs

typedef struct nodelist_rangelist nodelist_rangelist_t
 structure that represent a range of long int value

Functions

int nodelist_rangelist_init (nodelist_rangelist_t *array)
 Initialize a bridge ranges array structure.
int nodelist_rangelist_init_by_copy (nodelist_rangelist_t *array, nodelist_rangelist_t *a2c)
 Initialize a bridge ranges array structure by duplicating an other one.
int nodelist_rangelist_free_contents (nodelist_rangelist_t *array)
 Free a bridge ranges array structure contents.
int nodelist_rangelist_incremente_size (nodelist_rangelist_t *array)
 Increment a bridge ranges array storage zone.
int nodelist_rangelist_add_range (nodelist_rangelist_t *array, nodelist_range_t *r)
 Add a range to a bridge ranges array The range will be merge with already existing ranges if required and resulting ranges will be sorted.
int nodelist_rangelist_add_list (nodelist_rangelist_t *array, char *list)
 Add a list of values to a bridge ranges array The range will be merge with already existing ranges if required and resulting ranges will be sorted.
int nodelist_rangelist_sort (nodelist_rangelist_t *array)
 Sort a bridge ranges array.

Typedef Documentation

structure that represent a range of long int value


Function Documentation

int nodelist_rangelist_add_list ( nodelist_rangelist_t array,
char *  list 
)

Add a list of values to a bridge ranges array The range will be merge with already existing ranges if required and resulting ranges will be sorted.

Parameters:
arraypointer on a bridge ranges array structure to use for add-on
listvalues list that must be added (pattern [*,*-*...])
Return values:
npadding if operation successfully done
-1operation failed

Definition at line 397 of file nodelist_range.c.

int nodelist_rangelist_add_range ( nodelist_rangelist_t array,
nodelist_range_t r 
)

Add a range to a bridge ranges array The range will be merge with already existing ranges if required and resulting ranges will be sorted.

Parameters:
arraypointer on a bridge ranges array structure to use for add-on
rrange that will be add to the array
Return values:
0operation successfully done
-1operation failed

Definition at line 215 of file nodelist_range.c.

int nodelist_rangelist_free_contents ( nodelist_rangelist_t array)

Free a bridge ranges array structure contents.

Parameters:
arraypointer on a bridge ranges array structure to finalize
Return values:
0operation successfully done
-1operation failed

Definition at line 188 of file nodelist_range.c.

int nodelist_rangelist_incremente_size ( nodelist_rangelist_t array)

Increment a bridge ranges array storage zone.

Parameters:
arraypointer on a bridge ranges array structure to increment
Return values:
0operation successfully done
-1operation failed

Definition at line 201 of file nodelist_range.c.

int nodelist_rangelist_init ( nodelist_rangelist_t array)

Initialize a bridge ranges array structure.

Parameters:
arraypointer on a bridge ranges array structure to initialize
Return values:
0operation successfully done
-1operation failed

Definition at line 146 of file nodelist_range.c.

int nodelist_rangelist_init_by_copy ( nodelist_rangelist_t array,
nodelist_rangelist_t a2c 
)

Initialize a bridge ranges array structure by duplicating an other one.

Parameters:
arraypointer on a bridge ranges array structure to initialize
Return values:
0operation successfully done
-1operation failed

Definition at line 165 of file nodelist_range.c.

int nodelist_rangelist_sort ( nodelist_rangelist_t array)

Sort a bridge ranges array.

Parameters:
arraypointer on a bridge ranges array structure to sort
Return values:
0operation successfully done
-1operation failed

Definition at line 518 of file nodelist_range.c.