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)
Fri, Sep 20, 11:55 PM
Unknown Object (File)
Fri, Sep 20, 4:41 AM
Unknown Object (File)
Thu, Sep 19, 1:46 PM
Unknown Object (File)
Wed, Sep 18, 5:14 PM
Unknown Object (File)
Wed, Sep 18, 3:03 AM
Unknown Object (File)
Tue, Sep 17, 7:52 AM
Unknown Object (File)
Sun, Sep 15, 9:06 PM
Unknown Object (File)
Sun, Sep 15, 7:58 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.