Hi,
I want to do some benchmarking and speed testing of
rsync and UFS snapshots by taking existing files,
doing rsyncs and snapshots of them and their
filesystem, and then _changing_ those files by a
certain percent difference, and rsyncing/snapshotting
again.
So the question is, how do I take a
On Mon, 5 Jul 2004 13:55:00 -0700 (PDT)
Joe Schmoe [EMAIL PROTECTED] wrote:
Hi,
So the question is, how do I take a given file and
make it 100% different from itself (but maintain its
size and place on disk) ? I could just output
/dev/zero to it, but that would leave unchanged all
the bits
On 2004-07-05 13:55, Joe Schmoe [EMAIL PROTECTED] wrote:
So the question is, how do I take a given file and make it 100%
different from itself (but maintain its size and place on disk) ?
I could just output /dev/zero to it, but that would leave unchanged
all the bits that were aleady zero.
On Mon, 5 Jul 2004 22:59:55 +0200
Miguel Mendez [EMAIL PROTECTED] wrote:
The xor operation of a byte/word/dword with itself does that. You
could setup a buffer of the desired % of bytes you want to change,
read the bytes, xor them (^ in C) with itself and write back. It's
trivial in