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
Unknown Object (File)
Mon, May 6, 2:13 AM
Unknown Object (File)
Sun, May 5, 11:38 AM
Unknown Object (File)
Thu, May 2, 8:52 PM
Unknown Object (File)
Thu, May 2, 8:52 PM
Unknown Object (File)
Thu, May 2, 8:52 PM
Unknown Object (File)
Thu, May 2, 8:27 PM
Unknown Object (File)
Thu, May 2, 8:27 PM
Unknown Object (File)
Thu, May 2, 8:26 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