xfs
[Top] [All Lists]

Re: [Question] how to know which blocks are used?

To: weafon <weafon@xxxxxxxxxxxxxxx>
Subject: Re: [Question] how to know which blocks are used?
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 17 May 2005 08:59:39 +0100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <001a01c55a92$d90dea20$9558718c@weafon1400w>
References: <001a01c55a92$d90dea20$9558718c@weafon1400w>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Tue, May 17, 2005 at 11:45:19AM +0800, weafon wrote:
> Hi,
> I am writing a code for copying the XFS-format disk to another space disk. 
> The code is run without the support of XFS lib. 
> That is, the code has to read the structure of XFS by itself.
> 
> I went to know which block is used because I only plan to copy the used block 
> for saving time.

xfs_copy is doing exactly that.  Either use it or look at it what it does.


<Prev in Thread] Current Thread [Next in Thread>