Page MenuHomeFreeBSD

sbin/bectl: Skip tests if sparse files are not supported
ClosedPublic

Authored by arichardson on Feb 2 2021, 6:16 PM.
Tags
None
Referenced Files
F102616351: D28463.diff
Thu, Nov 14, 8:49 PM
Unknown Object (File)
Oct 1 2024, 12:59 PM
Unknown Object (File)
Sep 27 2024, 8:57 AM
Unknown Object (File)
Sep 26 2024, 1:32 AM
Unknown Object (File)
Sep 5 2024, 6:02 AM
Unknown Object (File)
Sep 5 2024, 1:10 AM
Unknown Object (File)
Aug 31 2024, 9:39 PM
Unknown Object (File)
Aug 19 2024, 2:36 PM
Subscribers

Details

Summary

The tests create a 1GB test file and this causes the tests to fail in the
CheriBSD CI setup where we run tests with a tmpfs mount on /tmp. Tmpfs
does not support sparse files and it appears that tmpfs default to creating
a 1GB mount, so there is not enough space to run these tests.

Instead of checking for at least 1GB of free space this commit skips the
tests on file systems that do not support sparse files.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I'm contemplating dropping the disk size to 200M or less, but that'll require a fair amount of testing since I suspect nobody does sub-1G disks with ZFS :-). This works, and I'll rip it out should I get around to fixing the underlying cause.

This revision is now accepted and ready to land.Feb 2 2021, 6:27 PM