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:
committed by
Steven Rostedt (VMware)
parent
15e95037b4
commit
a24d286f36
3
tools/bootconfig/samples/bad-mixed-kv1.bconf
Normal file
3
tools/bootconfig/samples/bad-mixed-kv1.bconf
Normal file
@@ -0,0 +1,3 @@
|
||||
# value -> subkey pattern
|
||||
key = value
|
||||
key.subkey = another-value
|
||||
3
tools/bootconfig/samples/bad-mixed-kv2.bconf
Normal file
3
tools/bootconfig/samples/bad-mixed-kv2.bconf
Normal file
@@ -0,0 +1,3 @@
|
||||
# subkey -> value pattern
|
||||
key.subkey = value
|
||||
key = another-value
|
||||
Reference in New Issue
Block a user