]> code.ossystems Code Review - openembedded-core.git/commit
udev-cache: Update cache tarball atomically
authorRichard Tollerton <rich.tollerton@ni.com>
Fri, 22 Aug 2014 21:30:47 +0000 (16:30 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Aug 2014 22:01:34 +0000 (23:01 +0100)
commit5dbf43fe32a1cf259f9379a7d2c008260eabf3ac
tree702284a6b5ecf668582ed8184825c494ebbdcbaf
parentfe2f51571f97e2cceae974f6a18782025e080c32
udev-cache: Update cache tarball atomically

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.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
Signed-off-by: Ben Shelton <ben.shelton@ni.com>
Acked-by: Gratian Crisan <gratian.crisan@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/udev/udev/udev-cache