From patchwork Thu Oct 4 18:31:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot] tools: Add a README note about fw_printenv lock file Date: Thu, 04 Oct 2012 08:31:00 -0000 From: Joe Hershberger X-Patchwork-Id: 189243 Message-Id: <1349375460-27310-1-git-send-email-joe.hershberger@ni.com> To: u-boot@lists.denx.de Cc: Tom Rini , Joe Hershberger , Luka Perkov Add a mention of the lock file to the README for the fw_printenv tool. Signed-off-by: Joe Hershberger Reported-by: Luka Perkov --- This patch is independent of the series, but should be applied afterward tools/env/README | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/env/README b/tools/env/README index 3f0d77e..df020e4 100644 --- a/tools/env/README +++ b/tools/env/README @@ -55,3 +55,7 @@ partition where the environment resides. DEVICEx_ENVSECTORS defines the number of sectors that may be used for this environment instance. On NAND this is used to limit the range within which bad blocks are skipped, on NOR it is not used. + +To prevent losing changes to the environment and to prevent confusing the MTD +drivers, a lock file at /var/lock/fw_printenv.lock is used to serialize access +to the environment.