https://launchpad.net/ubuntu/+source/funionfs
http://lwn.net/Articles/217084/
funionfs is union file system in user space(aufs is kernel level). union file system is a way you can mount multiple dir into one. It's helpful when you want to add a disk to your system, and those file added will append to new disk.
$ sudo funionfs -o dirs=ro_dir=RO:rw_dir -o allow_other NONE mnt_dir
After you do this, those things write to mnt_dir will go into rw_dir, and left ro_dir untouched.
You can add your command to /etc/rc.local to do this when booting.
No comments:
Post a Comment