Re: [PATCH v2 1/2] common: state: Add property to protect existing data

2018-04-16 Thread Sascha Hauer
On Thu, Apr 12, 2018 at 11:13:01AM +0200, Daniel Schultz wrote: > After an update to a newer barebox version with an enabled state > framework, existing data in storage memories could be overwritten. > > Add a new property to check in front of every write task, if the meta > magic field only conta

[PATCH v2 1/2] common: state: Add property to protect existing data

2018-04-12 Thread Daniel Schultz
After an update to a newer barebox version with an enabled state framework, existing data in storage memories could be overwritten. Add a new property to check in front of every write task, if the meta magic field only contains the magic number, zeros or ones. Signed-off-by: Daniel Schultz --- C