From: Wolfgang Denk Date: Fri, 09 Mar 2018 13:30:19 +0100 Subject: [U-Boot] [PATCH v2 0/4] Add atomic write to fw_setenv for environments on filesystems In-Reply-To: <1520597582-12979-1-git-send-email-alex.kiernan@gmail.com> References: <1520597582-12979-1-git-send-email-alex.kiernan@gmail.com> Message-ID: <20180309123019.9CB1A247241@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Alex, In message <1520597582-12979-1-git-send-email-alex.kiernan@gmail.com> you wrote: > > For environments stored on filesystems where you can't have a redundant > configuration, rather than just over-writing the existing environment > in fw_setenv, do the tradtional create temporary file, rename, sync, > sync directory dance to achieve ACID semantics when writing through > fw_setenv. I isagree with the statement that we _can't have_ redundant environments in a file system. It may not be supported by the current implementation, but there is actually nothing that would prevent us to come up with more powerful code that supports exactly such a feature. [This does not mean that I disagree with your patch - on contary, I think it's good.] Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A person with one watch knows what time it is; a person with two watches is never sure. Proverb