Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ozutil.copyfile_sparse doesn't create sparse file using python 3 #277

Open
simaishi opened this issue Feb 6, 2020 · 0 comments
Open

ozutil.copyfile_sparse doesn't create sparse file using python 3 #277

simaishi opened this issue Feb 6, 2020 · 0 comments

Comments

@simaishi
Copy link

simaishi commented Feb 6, 2020

Created a 100K file using dd if=/dev/zero of=zeros bs=100K count=1. The file created is:

100K -rw-r--r-- 1 root root 100K Feb 5 12:10 zeros

After copying the file using copyfile_sparse:

python2 (v2.7.5): 0 -rwxr-xr-x 1 root root 100K Feb 5 12:11 new

python3 (v3.6.8): 100K -rwxr-xr-x. 1 root root 100K Feb 5 13:49 new

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant