state: keep backward compatibility
Previous 'state' variable set variants do not know and use metadata. The
'direct' storage backend's read function honors this, but not its
counterpart the write function. This makes an update of the 'state'
variable set impossible.
This change makes backward compatibility explicit, else it complains in
the read function as well. With some more debug output it helps the
developer to do things right.

Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d79a817 commit 480cde1b22831febacc2a8ab91dfe99d2e5be8e9
@Juergen Borleis Juergen Borleis authored on 15 Aug 2017
Sascha Hauer committed on 6 Sep 2017
Showing 2 changed files
View
common/Kconfig
View
common/state/backend_bucket_direct.c