Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

use robocopy instead of native copy on Windows #43

Merged
merged 3 commits into from
Feb 3, 2021
Merged

Conversation

vito
Copy link
Member

@vito vito commented Jan 29, 2021

  • remove old native Go copying code; now we always shell out to cp (Linux, Darwin) or robocopy (Windows)
  • add /mt flag to robocopy (multithreaded copy - wicked fast!)

this moves the naive volume driver's 'robocopy' usage to the 'copy'
package and then switches the naive driver to just use the 'copy'
package.

bonus: use /mt for multithreaded copy - way faster!

Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
nothing calls this anymore now that Windows uses robocopy. it's
basically always better to just shell out.

Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
the overlay tests would only pass if the image was fetched on another
worker and then streamed to the worker that runs the tests, which would
result in / being ext4 (or whatever the host filesystem is).

if the image was already present on the worker, it'd be a copy-on-right
volume, which would result in / (and thus /tmp) being overlay, so the
overlay tests failing with 'invalid argument' and a dmesg error saying
the filesystem is not supported.

Signed-off-by: Alex Suraci <suraci.alex@gmail.com>
@vito vito assigned xtremerui and taylorsilva and unassigned xtremerui Feb 1, 2021
@vito vito merged commit 4b89831 into master Feb 3, 2021
@vito vito deleted the robocopy-import branch February 3, 2021 20:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants