[OE-core] [PATCH 07/20] udev-cache: Update cache tarball atomically

Otavio Salvador otavio at ossystems.com.br
Mon Aug 4 19:35:12 UTC 2014


On Mon, Aug 4, 2014 at 3:40 PM, Ben Shelton <ben.shelton at ni.com> wrote:
> From: Richard Tollerton <rich.tollerton at ni.com>
>
> Overwriting the tarball in-place could cause a partial write, if the
> system stops at an inopportune time. This is mitigated by first writing to a
> temporary file, then moving that file on top of the final location.
>
> Natinst-Rally-ID: TA44427
> Acked-by: Gratian Crisan <gratian.crisan at ni.com>
> Natinst-ReviewBoard-ID: 58620
> Signed-off-by: Richard Tollerton <rich.tollerton at ni.com>


Acked-by: Otavio Salvador <otavio at ossystems.com.br>

As an improvement, this could be written in tmpfs so it avoid
duplicated writting. For NAND devices without much free space this
might matter.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list