]> 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)
committerSteve Sakoman <steve@sakoman.com>
Thu, 28 Jan 2021 14:41:47 +0000 (04:41 -1000)
commit064eb959c38ae10dcb99b750c6bf6112de6c29d5
tree3e9a01c046e3c1a906ec594e3c9640af65b9ab88
parent771f8755db3a612c2c438367e8a49f190d4b9d8e
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>
(cherry picked from commit 1c13149b81e03a1ac48b27a208a139d5493c3ce7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/pseudo/files/delete_mismatches.patch [new file with mode: 0644]
meta/recipes-devtools/pseudo/pseudo_git.bb