bootconfig: Reject subkey and value on same parent key

Reject if a value node is mixed with subkey node on same
parent key node.

A value node can not co-exist with subkey node under some key
node, e.g.

key = value
key.subkey = another-value

This is not be allowed because bootconfig API is not designed
to handle such case.

Link: http://lkml.kernel.org/r/158220115232.26565.7792340045009731803.stgit@devnote2

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
Masami Hiramatsu
2020-02-20 21:19:12 +09:00
committed by Steven Rostedt (VMware)
parent 15e95037b4
commit a24d286f36
4 changed files with 25 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
# value -> subkey pattern
key = value
key.subkey = another-value

View File

@@ -0,0 +1,3 @@
# subkey -> value pattern
key.subkey = value
key = another-value