]> code.ossystems Code Review - openembedded-core.git/commit
pseudo: Ignore mismatched inodes from the db
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Sep 2020 13:07:48 +0000 (14:07 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Oct 2020 10:18:35 +0000 (11:18 +0100)
commit1c13149b81e03a1ac48b27a208a139d5493c3ce7
treec8b513f02fa7f9db7b10f86f2d8f0374f2046e13
parent429efe4d8a74b5cb2ab1f76088642a078a6f8829
pseudo: Ignore mismatched inodes from the db

Currently, where pseudo finds a database entry for an inode but the path
doesn't match, it reuses that database entry metadata. This is causing
real world "corruption" of file attributes.

See [YOCTO #14057] for an example of this.

This can happen when files are deleted outside of pseudo context and the
inode is reused by a new file which pseduo then "sees".

Its possible the opposite could happen, it needs to reuse attributes
but this change would prevent it. As far as I can tell, we don't want
pseuo to reuse these attributes though so this code should be safer
and avoid bugs like the above.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/pseudo/files/delete_mismatches.patch [new file with mode: 0644]
meta/recipes-devtools/pseudo/pseudo_git.bb