freebsd-dev/bin/cp
Dag-Erling Smørgrav 8b418c83d1 cp: Adjust the sparse file tests.
* The sparsity check was ineffective: it compared the apparent size in bytes to the actual size in blocks.  Instead, write a tool that reliably detects sparseness.
* Some of the seq commands were missing an argument.
* Based on empirical evidence, 1 MB holes are not necessarily large enough to be preserved by the underlying filesystem.  Increase the hole size to 16 MB.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	cracauer
Differential Revision:	https://reviews.freebsd.org/D38414
2023-02-08 16:49:50 +00:00
..
tests cp: Adjust the sparse file tests. 2023-02-08 16:49:50 +00:00
cp.1
cp.c cp: Minor code cleanup. 2023-02-03 16:37:37 +01:00
extern.h
Makefile cp: Simplify the common case. 2023-02-02 15:46:04 +01:00
Makefile.depend
utils.c cp: Minor code cleanup. 2023-02-03 16:37:37 +01:00