+ valid = 1;
+ continue;
+ }
+
+ if (strcasecmp(temp2, FIELD_OWNER) == 0) {
+ strfieldcpy(dev.owner, temp3);
+ valid = 1;
+ continue;
+ }
+
+ if (strcasecmp(temp2, FIELD_GROUP) == 0) {
+ strfieldcpy(dev.group, temp3);
+ valid = 1;
+ continue;
+ }
+
+ if (strcasecmp(temp2, FIELD_MODE) == 0) {
+ dev.mode = strtol(temp3, NULL, 8);
+ valid = 1;
+ continue;
+ }
+
+ if (strcasecmp(temp2, FIELD_OPTIONS) == 0) {
+ if (strstr(temp3, ATTR_IGNORE_DEVICE) != NULL) {
+ dbg_parse("device should be ignored");
+ dev.ignore_device = 1;
+ }
+ if (strstr(temp3, ATTR_IGNORE_REMOVE) != NULL) {
+ dbg_parse("remove event should be ignored");
+ dev.ignore_remove = 1;
+ }
+ if (strstr(temp3, ATTR_PARTITIONS) != NULL) {
+ dbg_parse("creation of partition nodes requested");
+ dev.partitions = DEFAULT_PARTITIONS_COUNT;
+ }
+ valid = 1;