WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Understanding sparse-files

To: "John Haxby" <john.haxby@xxxxxxxxxx>
Subject: Re: [Xen-users] Understanding sparse-files
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Tue, 16 Dec 2008 16:13:49 -0500
Cc: "Rustedt, Florian" <Florian.Rustedt@xxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 16 Dec 2008 13:15:13 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=pcXaFqEvxCR8CYSb8CNG13fOyXC5DtkRLjgAzjXQofg=; b=PjMyswh1BMHOAm5WjJvAClX0qm9O0zSXEfEe94GznhYLFVUN33fccbY8crt9dx+pXz uok9edImw57+qDh7ZhBHAAnBs1NajnM4LR1x0jkCHYdUGVzjAYxz7nXwCpV2KhCpW5L3 9zjuQECmPXBVn0cpBwfICEXirrHD95WX1A1Hk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=ec6w+EE0h6moIGntFt6F2Edp9EYJ6kZJIvqb4FwKroatmm9a5yeuaYjydZmVfge5zY WUTGFFGUsKBbW8kukmDdJnSDujDm4vB114AjyivriyjMoJYr44QL3974/ne9Iua+FP/+ 7Q7ukprr5jo8qPCO4/OpDMy/yhr7wYiOPZ8O4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4947BD2D.9000201@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <152CD2A019ABF542B87AFDC5010DFBEE2E7256@xxxxxxxxxxxxxxxxxxxxxxxxxx> <4947BD2D.9000201@xxxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> There are some problems with sparse files: the compress beautfully (gzip
> reports 99.9%) but it takes a while to read the empty space and when you
> uncompress the file you discover that it now actually occupies disk space:
> there's no good way to distinguish between an unallocated block and a block
> full of zeroes.   This also means that you need to be careful how you back
> these files up: you need something a little cleverer than gzip.

You can use tar with the S (sparse) option here.
Also I think that you should be able to use cp
with a --sparse option as well.

To distinguish, using the du command helps.

Cheers,
Todd

-- 
Todd Deshane
http://todddeshane.net
http://runningxen.com

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users