Hello Peter .wang, "arthur.wang": > I want to get knowledge about that the Aufs module is capable of > writing changes in Readable/Writable branch to disk. > for example, > Aufs mount linux rootfs to two seperated branches : RO and RW(tmpfs). > Then, modified occurred in rw branches which is usually located in > memory, could Aufs write the modification to disk, and sync to the RO > branches?
The simplest way is specify disk instead of tmpfs. For example, # mount -o ro /dev/sda1 /ro # mount /dev/sda2 /rw # mount -t aufs -o br:/rw:/ro none /u then all changes go to /rw. If your RW(tmpfs) is accessible directly (bypassing aufs), then you can copy the files to anywhere you like. For such case, there is a script called aubrsync in aufs2-util.git tree. J. R. Okajima ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
