Hi Denis!

Please make sure to CC: the qtest maintainer (Fabiano Rosas) on series like this.

On 24/08/2026 22.06, Denis V. Lunev wrote:
John reported ide-test dying at startup in the NetBSD VM:

   ERROR:../src/tests/qtest/ide-test.c:1260:main: assertion failed:
   (ret == 0)

The hypothesys is that the ftruncate() of a 64 MiB scratch image. NetBSD
mounts /tmp as a tmpfs sized at 25% of RAM and charges a file its full
length themoment it is extended, so a sparse image is not free there and
the call returns ENOSPC. The assert dates to 2013, nothing regressed.

Does NetBSD have another file like /var/tmp that might be friendlier to sparse files? If so, maybe that should be used instead?

OTOH, our NetBSD VM in tests/vm/ uses 4G of RAM, so a temporary file with just 64 MiB should really not be a problem...?

...> Hope this should help. John, can you give a try to this in the test?
I do not have NetBSD handy and will start with this tomorrow if you
will share guest config.
Simply type "make vm-build-netbsd" from your build folder, this should take care of everything automatically. No need to install NetBSD on your own.

 Thomas


Reply via email to