nfs-ganesha 1.4
|
Classes | |
struct | nodelist_nodepattern |
structure that represent a nodename pattern More... | |
Typedefs | |
typedef struct nodelist_nodepattern | nodelist_nodepattern_t |
structure that represent a nodename pattern | |
Functions | |
int | nodelist_nodepattern_init (nodelist_nodepattern_t *np) |
Initialize a bridge node pattern structure. | |
int | nodelist_nodepattern_init_by_copy (nodelist_nodepattern_t *np, nodelist_nodepattern_t *npin) |
Initialize a bridge node pattern structure by dumping an other one. | |
int | nodelist_nodepattern_free_contents (nodelist_nodepattern_t *np) |
Clean a bridge node pattern structure. | |
int | nodelist_nodepattern_set_padding (nodelist_nodepattern_t *np, int padding) |
Set bridge node pattern padding. | |
int | nodelist_nodepattern_set_prefix (nodelist_nodepattern_t *np, char *prefix) |
Set bridge node pattern prefix. | |
int | nodelist_nodepattern_set_suffix (nodelist_nodepattern_t *np, char *suffix) |
Set bridge node pattern prefix. | |
int | nodelist_nodepattern_set_basic (nodelist_nodepattern_t *np) |
Set bridge node pattern basic flag. | |
int | nodelist_nodepattern_unset_basic (nodelist_nodepattern_t *np) |
Unset bridge node pattern basic flag. | |
int | nodelist_nodepattern_equals (nodelist_nodepattern_t *np1, nodelist_nodepattern_t *np2) |
Test if two bridge node patterns are identical. |
typedef struct nodelist_nodepattern nodelist_nodepattern_t |
structure that represent a nodename pattern
can be use for basic node or enumartion node (prefixXXXsuffix pattern)
int nodelist_nodepattern_equals | ( | nodelist_nodepattern_t * | np1, |
nodelist_nodepattern_t * | np2 | ||
) |
Test if two bridge node patterns are identical.
Test if two bridge node patterns are identical (paddinf is not tested)
np1 | pointer on the first bridge node pattern structure |
np2 | pointer on the first bridge node pattern structure |
1 | if the two pattern are identical |
0 | if they are not identical |
np1 | pointer on the first bridge node pattern structure |
np2 | pointer on the first bridge node pattern structure |
1 | if the two pattern are identical |
0 | if they are not identical |
-1 | operation failed |
Definition at line 1375 of file nodelist.c.
int nodelist_nodepattern_free_contents | ( | nodelist_nodepattern_t * | np | ) |
Clean a bridge node pattern structure.
np | pointer on a bridge node pattern structure to free |
0 | operation successfully done |
-1 | operation failed |
Definition at line 1253 of file nodelist.c.
int nodelist_nodepattern_init | ( | nodelist_nodepattern_t * | np | ) |
Initialize a bridge node pattern structure.
by default, padding is set to 0, prefix and suffix to NULL and the node pattern is basic
np | pointer on a bridge node pattern structure to initialize |
0 | operation successfully done |
-1 | operation failed |
Definition at line 1193 of file nodelist.c.
int nodelist_nodepattern_init_by_copy | ( | nodelist_nodepattern_t * | np, |
nodelist_nodepattern_t * | npin | ||
) |
Initialize a bridge node pattern structure by dumping an other one.
by default, padding is set to 0, prefix and suffix to NULL and the node pattern is basic
np | pointer on a bridge node pattern structure to initialize |
npin | pointer on a bridge node pattern to copy |
0 | operation successfully done |
-1 | operation failed |
Definition at line 1215 of file nodelist.c.
int nodelist_nodepattern_set_basic | ( | nodelist_nodepattern_t * | np | ) |
Set bridge node pattern basic flag.
np | pointer on a bridge node pattern structure |
0 | operation successfully done |
-1 | operation failed |
Definition at line 1334 of file nodelist.c.
int nodelist_nodepattern_set_padding | ( | nodelist_nodepattern_t * | np, |
int | padding | ||
) |
Set bridge node pattern padding.
np | pointer on a bridge node pattern structure to free |
padding | padding value of the pattern |
0 | operation successfully done |
-1 | operation failed |
Definition at line 1271 of file nodelist.c.
int nodelist_nodepattern_set_prefix | ( | nodelist_nodepattern_t * | np, |
char * | prefix | ||
) |
Set bridge node pattern prefix.
np | pointer on a bridge node pattern structure |
prefix | node pattern prefix |
0 | operation successfully done |
-1 | operation failed |
Definition at line 1291 of file nodelist.c.
int nodelist_nodepattern_set_suffix | ( | nodelist_nodepattern_t * | np, |
char * | suffix | ||
) |
Set bridge node pattern prefix.
np | pointer on a bridge node pattern structure |
prefix | node pattern prefix |
0 | operation successfully done |
-1 | operation failed |
Definition at line 1313 of file nodelist.c.
int nodelist_nodepattern_unset_basic | ( | nodelist_nodepattern_t * | np | ) |
Unset bridge node pattern basic flag.
np | pointer on a bridge node pattern structure |
0 | operation successfully done |
-1 | operation failed |
Definition at line 1353 of file nodelist.c.