[LTP] [PATCH] mmap21: Check for free space before mapping the file
Victor Cheng-Yen Yang
cyyang772@andestech.com
Mon Sep 14 04:13:27 CEST 2026
Hi Cyril,
> Depending on the page size this is either 4MB or 64MB, I would say that
> if you run LTP on a machine with less than 4MB of free space many tests
> would fail.
I agree with you. In our test environment, we did provide mmap21 with
sufficient space. mmap21 was the victim because certain shell test did
not clean up properly and filled up the disk.
> Maybe it would make sense to print a warning from the test library for
> any tests that has needs_tmpdir == 1 and the free space at the test
> temporary directory is less than a few megabytes.
I'll work on this in the near future. Printing warning messages from the
test library is indeed an elegant way. Thanks for your idea!
Best Regards,
Victor
More information about the ltp
mailing list