On Mon, Jul 02, 2012 at 07:34:12PM +0800, Wanlong Gao wrote:
On 07/02/2012 05:28 PM, Richard W.M. Jones wrote:
> The outline of the code seems to be:
>
> * create two handles
> * add both disks
> * inspect both disks
> * mount-local both disks on separate temporary directories
> * run regular 'diff' command across the temporary directories
>
> These is a reasonable approach for code simplicity, but I guess it'll
> be very slow in practice.
If you have a better idea in mind, please teach me.
Thinking about this longer, I think the mount-local approach will be
fine. If it's too slow and someone is motivated, it can always be
optimized later.
The larger issue is the patch as written cannot work ...
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top