Skip to content

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

Description

@simaishi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions