Option --sparse produces files filled with zeroes when source is on NFS 
(instead of real content).

see: https://bugzilla.proxmox.com/show_bug.cgi?id=462

The following script shows the bug:

------------------start test script------------------
#!/bin/sh

set -e

# Note: to reproduce the bug. make sure TESTDIR is on NFS
TESTDIR=$(pwd)/testdir

rm -rf ${TESTDIR}
mkdir -p ${TESTDIR}/src
mkdir -p ${TESTDIR}/dst

echo "A SIMPLE TEST FILE" > ${TESTDIR}/src/file1

tar -C ${TESTDIR}/src --sparse -cpf ${TESTDIR}/sparse.tar .
tar -C ${TESTDIR}/dst -xf ${TESTDIR}/sparse.tar

# this fails, because dst/file1 is filled with 0
cmp ${TESTDIR}/src/file1 ${TESTDIR}/dst/file1
------------------end test script------------------

This is releated to the pve kernel, because it works if I use the standard 
debian kernel.

Any hints or ideas?

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to