]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: explicitly warn about unknown config token failures
authorEric Sandeen <sandeen@redhat.com>
Tue, 19 Jun 2018 20:43:04 +0000 (15:43 -0500)
committerEric Sandeen <sandeen@redhat.com>
Tue, 19 Jun 2018 20:43:04 +0000 (15:43 -0500)
commit7eda100f42e15d0d60f4c946dbd3263c191b6ae2
treef034612a5bc7acaf703698cb2297ca6e28cc6256
parentfebdf6d9436ae279082d97fa74367b7e0c8cf08a
mkfs: explicitly warn about unknown config token failures

Rather than a generic "Error parsing line" for an unknown token
within a section, issue a more helpful error message, i.e.

[data]
foo=1

would yield:

Invalid token in section [data] at line /etc/xfs/mkfs/default:2 : foo

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
mkfs/config.c