Skip to contentSkip to conversation

mounting COW on HOST?

uml-devel roland 4 participants 4 messages Dec 9, 2003 User-mode Linux (UML)

lore
Share & tools
lore

roland

author
#0 lore raw

hi!
one thing came to my mind today: why not porting the COW feature of UML to the "mainstream" linuxkernel itself?
i would find this useful - not only in relation to UML.
maybe there is already something like this? don`t know....
what would we need? modifying loopdevice(mount -o loop...) code? perhaps using lufs for that? (btw: long awaited read/write support for ntfs partitions has been implemented via lufs and native windows ntfs.sys driver!) maybe this has been discussed already?

regards
roland

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw

Roland,

It wouldn't be that tough to write a COW block device for the standard kernel. In fact, if we did that, we could get rid of the COW hack in the ubd device.

The basic idea of COW is a bitmap to represent all the sectors of the block device, a backing block device and a cow block device. Any blocking device should work.

I have also thought of changing the index to be a 4 byte offset, this would useful for live CD distros with a floppy device. The floppy device becomes the COW disk while the backing file is the CDROM. I haven't done the math on the usability of 1.4MB floppy or the recovery mechanism in case of a kernel panic, etc... But having a live CD in which any sector could be changed might be interesting, at least make it easier for the live CD people.

See ya,
Greg

Quoted 24 lines · roland

hi!
one thing came to my mind today: why not porting the COW feature of UML to the "mainstream" linuxkernel itself?
i would find this useful - not only in relation to UML.
maybe there is already something like this? don`t know....
what would we need? modifying loopdevice(mount -o loop...) code? perhaps using lufs for that? (btw: long awaited read/write support for ntfs partitions has been implemented via lufs and native windows ntfs.sys driver!) maybe this has been discussed already?

regards
roland

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Signature · 9 lines
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#3 lore raw
In reply to roland
Quoted 8 lines · roland

one thing came to my mind today: why not porting the COW feature of UML to the "mainstream" linuxkernel itself?
i would find this useful - not only in relation to UML.
maybe there is already something like this? don`t know....
what would we need? modifying loopdevice(mount -o loop...) code? perhaps using lufs for that? (btw: long awaited read/write support for ntfs partitions has been implemented via lufs and native windows ntfs.sys driver!) maybe this has been discussed already?

This has come up several times before; search the mailing list archives.

Signature · 12 lines
 - mdz


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#2 lore raw
In reply to greg
Quoted 3 lines · greg

It wouldn't be that tough to write a COW block device for the standard kernel.  In fact, if we did that, we could get rid of the COW hack in the ubd device.

Isn't this already done via LVM snapshots?

Signature · 16 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&opÌk
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel