Re: sparse file issue?, dd(1) works well but tar(1) not on different partition

From: Tim Kientzle <kientzle_at_freebsd.org>
Date: Fri, 23 Jan 2009 00:12:45 -0800
Daichi GOTO wrote:
> Hi sparse guys (?)
> 
> I have been wondering about sparse file transportation between different
> partitions on -current. For example,
> 
>   /localapps/qemu/ on local disk (UFS2)
>   /nfshome/user/ on NFS (UFS2)
> 
>   /localapps/qemu/disk0image  20GB qemu diskimage sparsed file
> 
> then, follow operation works well.
> 
>   # cd /localapps/qemu/
>   # tar cpf - disk0image | tar xpf - -C /nfshome/user/
>   # cd /nfshome/user/
>   # dd if=disk0image of=disk0image-sparse conv=sparse
> 
> But
> 
>   # cd /localapps/qemu/
>   # tar cpf - disk0image | tar xpf - -S -C /nfshome/user/
> 
> gets follow error message.
> 
>   # tar cpf - disk0image | tar xpf - -S -C /nfshome/user/
>   disk0image: Write request too large
>   tar: Error exit delayed from previous errors.
>   #
> 
> tar(1) cannot do sparse output between different partations?
> Have I missed something important point?  If you have any ideas,
> teach me.

Looks like I managed to break -S recently.  I'll
send you a patch soon.

Tim
Received on Fri Jan 23 2009 - 07:12:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:40 UTC