Lines Matching refs:cn

57 	struct config_node *cn;
63 if (!(cn = find_config_node(cft->root, CONTENTS_FIELD))) {
68 cv = cn->v;
77 if (!(cn = find_config_node(cft->root, FORMAT_VERSION_FIELD))) {
82 cv = cn->v;
107 static int _read_id(struct id *id, struct config_node *cn, const char *path)
111 if (!(cn = find_config_node(cn, path))) {
116 cv = cn->v;
132 struct config_node *cn;
135 if (!(cn = find_config_node(n, "status"))) {
140 if (!(read_flags(status, type | STATUS_FLAG, cn->v))) {
145 if ((cn = find_config_node(n, "flags"))) {
146 if (!(read_flags(status, type, cn->v))) {
162 struct config_node *cn;
232 if ((cn = find_config_node(pvn, "tags")) &&
233 !(read_tags(mem, &pv->tags, cn->v))) {
298 struct config_node *cn, *sn_child = sn->child;
323 if ((cn = find_config_node(sn_child, "type"))) {
324 cv = cn->v;
351 if ((cn = find_config_node(sn_child, "tags")) &&
352 !(read_tags(mem, &seg->tags, cn->v))) {
376 const struct config_node *cn, struct dm_hash_table *pv_hash,
390 for (cv = cn->v, s = 0; cv && s < seg->area_count; s++, cv = cv->next) {
498 struct config_node *cn;
518 if ((cn = find_config_node(lvn, "allocation_policy"))) {
519 struct config_value *cv = cn->v;
547 if ((cn = find_config_node(lvn, "tags")) &&
548 !(read_tags(mem, &lv->tags, cn->v))) {
638 struct config_node *vgn, *cn;
672 if ((cn = find_config_node(vgn, "system_id")) && cn->v) {
673 if (!cn->v->v.str) {
677 strncpy(vg->system_id, cn->v->v.str, NAME_LEN);
721 if ((cn = find_config_node(vgn, "allocation_policy"))) {
722 struct config_value *cv = cn->v;
755 if ((cn = find_config_node(vgn, "tags")) &&
756 !(read_tags(mem, &vg->tags, cn->v))) {