Page MenuHomeFreeBSD

cp: Add tests involving sparse files.
ClosedPublic

Authored by des on Jan 31 2023, 10:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
May 18 2024, 6:02 PM
Unknown Object (File)
Apr 25 2024, 3:44 AM
Unknown Object (File)
Apr 25 2024, 3:44 AM
Unknown Object (File)
Apr 25 2024, 3:44 AM
Unknown Object (File)
Apr 22 2024, 4:30 AM
Unknown Object (File)
Apr 22 2024, 4:30 AM
Unknown Object (File)
Apr 22 2024, 4:30 AM
Unknown Object (File)
Apr 22 2024, 4:06 AM
Subscribers

Diff Detail

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

Event Timeline

des requested review of this revision.Jan 31 2023, 10:16 AM

As noted in D38191, our cp(1) transparently and unconditionally preserves holes when copying sparse files.

Remove test cases that make no sense without the -S option.

Pick nit in sparse_only_hole case.

I'm afraid I know nothing about the testing framework,
so I can't help with this one.

Good to see it being done though.

markj added a subscriber: markj.

Seems ok, though these tests might fail if run on unusual filesystems like msdosfs. I think we can address that later if it ever comes up though.

bin/cp/tests/cp_test.sh
314

Since these seem to be alphabetically sorted, the sparse tests should come before standalone_Pflag.

This revision is now accepted and ready to land.Feb 1 2023, 7:35 PM
des marked an inline comment as done.

Order tests lexicographically.

This revision now requires review to proceed.Feb 1 2023, 8:03 PM
This revision is now accepted and ready to land.Feb 1 2023, 8:47 PM
This revision was automatically updated to reflect the committed changes.