On Friday 16 December 2005 15:47, Ian Smith-Heisters wrote:
> Hi all,
>
> I just read about COW, and wish I'd known about them when I first setup
> my servers. Now I have several UML rootfs based off of a single original
> rootfs, which I mirrored just by copying. Is there any way I can
> retroactively create a COW from the modified rootfs and the original
> rootfs? Sort of like doing a diff? Can uml_mkcow do this?

> Thanks,
> Ian

There's no such tool currently - however it can be coded in a relatively easy 
way inside Uml.

ubd0=another_root_fs ubd1=new_cow_file,orig_one ubd2=modified_one

open /dev/ubd1
open /dev/ubd2
compare block by block (512-byte blocks) the two files 
replace the ubd1 block with ubd2 one when they don't match.

finally, ubd1 will match ubd2 but on ubd1 the changes have been made on the 
COW file.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

        

        
                
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to