Date: Fri, 29 Jun 2012 09:04:53 -0700 From: Devin Teske <devin.teske@fisglobal.com> To: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> Cc: freebsd-questions@freebsd.org Subject: Re: "binary diff" utility Message-ID: <54320F22-40C5-43E9-AAA0-799058F1EECB@fisglobal.com> In-Reply-To: <alpine.BSF.2.00.1206291751510.45176@wojtek.tensor.gdynia.pl> References: <alpine.BSF.2.00.1206291751510.45176@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Jun 29, 2012, at 8:53 AM, Wojciech Puchar wrote: > i have many windows images running over virtualbox. each takes several gi= gabytes. i use flat image format. >=20 > each differs by very little. >=20 > Is there any program that can do "diff" and keep just a difference betwee= n each of them instead copy of whole VM disk?? Try libxdiff=85 http://www.freshports.org/textproc/libxdiff/ >From the pkg-descr: The LibXDiff library implements basic and yet complete functionalities to create file differences/patches to both binary and text files. The library uses memory files as file abstraction to achieve both performance and portability. For binary files, LibXDiff implements (with some modification) the algorithm described in File System Support for Delta Compression by Joshua P. MacDonald, while for text files it follows directives described in An O(ND) Difference Algorithm and Its Variations by Eugene W. Myers. Memory files used by the library are basically a collection of buffers that store = the file content. There are two different requirements for memory files when pa= ssed to diff/patch functions. Text files for diff/patch functions require that a single line do not have to spawn across two different memory file blocks. Binary diff/patch functions require memory files to be compact. A compact memory files is a file whose content is stored inside a single block. WWW:=20 http://www.xmailserver.org/xdiff-lib.html --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54320F22-40C5-43E9-AAA0-799058F1EECB>