]> code.ossystems Code Review - openembedded-core.git/commit
sstate: Improve move into place op and touch file
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Dec 2019 22:58:17 +0000 (22:58 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 13 Jan 2020 13:06:51 +0000 (13:06 +0000)
commitd8e9a22a4e23616ad01627c1e472296b1e26f13c
tree37004898332326454404685e5690cd514bac551f
parent5a0f6f631b86f7107aa72453b6d23f32ba39f713
sstate: Improve move into place op and touch file

Depending on the kernel and coreutils version, mv operations test for existence
of files and can potentially race. It also leads to the file always changing which
leads to potential problems if using and NFS share and there are other readers.

Using ln instead means we don't overwrite the file if it already exists meaning
other readers aren't disrupted and should work more reliably on NFS which is used
for sstate on the autobuilder.

Since we're not overwriting files, touch the file to show activity as would have
been done it it were reused from sstate.

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