test program for copy_file_range(2)
Rick Macklem
rmacklem at uoguelph.ca
Fri Jul 5 00:38:10 UTC 2019
I have a little program for testing the copy_file_range(2) syscall I've been
working on. (The current version is attached, in case anyone is interested.)
It take a few minutes to run on a slow system and uses about 6Gbytes of disk
space for the file system the output file is on. (It creates 2 files to use for testing.
The first one is sparse and the second is copied from it, but grows as different byte
ranges get copied, since "punching holes" is done via writes of 0 bytes.)
My question is..
What needs to be done to include this in FreeBSD?
I see some stuff under head/tests. I could probably figure out
what the macros in those files are, but I can only see tests to see if
arguments are valid and similar. As such, I'm not sure if this is the correct
place for a test like this?
Thanks for any help with this, rick
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testcfr.c
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20190705/d477840c/attachment.c>
More information about the freebsd-current
mailing list