]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
sstate: Reduce race windows
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Aug 2019 10:49:23 +0000 (11:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Aug 2019 22:56:01 +0000 (23:56 +0100)
commit6c7c0cefd34067311144a1d4c01986fe0a4aef26
tree3f711509e625e7aae4d4cc2f2044b32dd6b479ac
parentdad9cd5cca1a09f33f0fd82a6bcbed31936ad6c8
sstate: Reduce race windows

When we write to the sstate directory we try to do so atomically so
consumers either see one version or another but never an imcomplete file.
Unfortunately this is reliant on filesystem support and with some NFS
configurations a replaced file would be lost from memory even if users held
open descriptors.

It makes sense to try and avoid replacing existing files where we can.

(From OE-Core rev: 18cdc087fd5da30e2b31f3d4e81b153cd36ca844)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass