Open simaishi opened 4 years ago
Created a 100K file using dd if=/dev/zero of=zeros bs=100K count=1. The file created is:
dd if=/dev/zero of=zeros bs=100K count=1
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
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
100K -rwxr-xr-x. 1 root root 100K Feb 5 13:49 new
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