13. 生产系统的做法
?
4. mount
– mount -t overlayfs overlayfs -olowerdir=/base,upperdir=/store1
/system1/
– mount -t overlayfs overlayfs -olowerdir=/base,upperdir=/store2
/system2/
– mount -t overlayfs overlayfs -olowerdir=/base,upperdir=/store3
/system3/
– mount -t overlayfs overlayfs -olowerdir=/base,upperdir=/store4
/system4/
运维人员执行:
cd /system2/; chroot .
14. Overlayfs 概览
?
由 SUSE 的 Miklos Szeredi 开发,实现非常简洁
?
设计用途
– 各个 linux 发行版的 livecd (以前的方案是 union
mount )
– 很多嵌入式设备的“恢复原厂设置”功能
– “virtualized systems built on a common base
filesystem”
15. 1. linux 文件系统的一些基础知识
2. 怎么发现 overlayfs (源起)
3. Linux 上 vfs 的原理
4. overlayfs 的原理
OVERLAYFS 提纲
#39: Andrew Morton 表示怀疑,觉得这种需求最好由 fuse 来实现:如果因为 overlayfs 简单就把它合进内核的话,那么“ Not merging it would be even smaller and simpler” Linus :“ So Andrew, I think that arguing that something _can_ be done with fuse, and thus _should_ be done with fuse is just ridiculous.” (参考 http://lwn.net/Articles/447650/ )