mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* nv variable changes
@ 2016-07-22 10:39 Sascha Hauer
  2016-07-22 10:39 ` [PATCH 1/6] nv: Do not save nv variables while loading Sascha Hauer
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Sascha Hauer @ 2016-07-22 10:39 UTC (permalink / raw)
  To: Barebox List

This series has some changes for nv variables. The most significant change:
nv variables are now automatically saved when they are changed. This makes
an explicit 'saveenv' unnecessary. Since we do not want excessive write
accesses on the environment storage we save the variables only on shutdown.
The rest of the environment is still shall not automatically be saved, to
implement this the nv variable code reads the environment from storage,
changes the nv variables and writes it back to storage.

----------------------------------------------------------------
Sascha Hauer (6):
      nv: Do not save nv variables while loading
      nv: Save nv variables on shutdown
      nv: Add option to explicitly save nv variables
      nv: Allow to set/remove multiple variables with one command
      nv: Use dev_remove_param to delete nv variable
      nv: Allow wildcards when removing NV vars

 commands/nv.c        |  43 ++++++++++-------
 common/environment.c |   4 ++
 common/globalvar.c   | 134 ++++++++++++++++++++++++++++++++++++++++++++-------
 include/globalvar.h  |   3 ++
 4 files changed, 149 insertions(+), 35 deletions(-)

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-07-22 10:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-22 10:39 nv variable changes Sascha Hauer
2016-07-22 10:39 ` [PATCH 1/6] nv: Do not save nv variables while loading Sascha Hauer
2016-07-22 10:39 ` [PATCH 2/6] nv: Save nv variables on shutdown Sascha Hauer
2016-07-22 10:39 ` [PATCH 3/6] nv: Add option to explicitly save nv variables Sascha Hauer
2016-07-22 10:39 ` [PATCH 4/6] nv: Allow to set/remove multiple variables with one command Sascha Hauer
2016-07-22 10:39 ` [PATCH 5/6] nv: Use dev_remove_param to delete nv variable Sascha Hauer
2016-07-22 10:39 ` [PATCH 6/6] nv: Allow wildcards when removing NV vars Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox