[PATCH] test: py: add dry run check for FIT image
Sascha Hauer
s.hauer at pengutronix.de
Mon Jan 19 03:26:27 PST 2026
On Fri, Jan 16, 2026 at 11:14:03AM +0100, Ahmad Fatoum wrote:
> A dry run should not alter system state in a way that would inhibit
> normal operation or repeated dry runs.
>
> The FIT image boot in the test suite, however, reduces the VFS root's
> reference count beyond the initial value before the bootm.
>
> This leads to a warning on boot that can be reproduced by repeating the
> dry run multiple times:
>
> FAILED test/py/test_fit.py::test_fit_dryrun -
> AssertionError: ['WARNING: at fs/fs.c:255/mntput()!',
> 'WARNING: refcount for mount "/" becomes negative']
>
> Add a regression test for this issue.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
> ---
> @Sascha, given that you introduced the warning, maybe you are interested
> in looking into this? :-)
> I am not sure if it's 9PFS related. It's reproducible with:
No, it's not 9pfs related. It's the O_TMPFILE creation that bites us
here. I've sent a fix.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list