Ariz wrote:

> afaik, rsync will copy the file (depends on the input arguments).
> and if rsync does support your example, it would alter the whole
> line.

Just to clarify, in the example I gave, the strings do
not represent single letters, but rather chunks of data.
(e.g. say each letter represents around 5MB of data).

So

ABCDEFGHIJKLMNOPQRSTUVWXYZA

would not be a line but a file of around 1800 MB.
I am wondering how efficiently rsync would update
a backup file if, like the example shows, two
15MB chunks get inserted in the positions shown
by 123 and 456 below:

ABCDEFGHI123JKLMNOPQ456RSTUVWXYZA

Will it have to update all the blocks starting from
1 (i.e. from the 50th MB) or somehow be able to
'insert' the new data?

I am wondering because if, for example, you insert
(not modify) 10 bytes in the beginning of a
650MB ISO, will rsync handle this efficiently?

I am also curious about the low-level operations
involved, since you do not seem to be able to do
inserts via fopen(), lseek() and write(), so how
will such an action translate into C calls()?
--
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to