patch aufs for linux-3.10.17
git clone git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git aufs3-standalone.git
cd aufs3-standalone.git
git checkout origin/aufs3.10 --> 3.x 依據你的 kernel 版本
參考 README ...
- apply ./aufs3-kbuild.patch to your kernel source files.
- apply ./aufs3-base.patch too.
- apply ./aufs3-mmap.patch too.
- apply ./aufs3-standalone.patch too, if you have a plan to set
CONFIG_AUFS_FS=m. otherwise you don't need ./aufs3-standalone.patch.
- copy ./{Documentation,fs,include/uapi/linux/aufs_type.h} files to your kernel source tree.
Never copy $PWD/include/uapi/linux/Kbuild.
cp -rfv ../aufs3-standalone.git/{Documentation,fs} ./
cp -rfv ../aufs3-standalone.git/include/uapi/linux/aufs_type.h ./include/uapi/linux/
patch -Np1 -i ../aufs3-standalone.git/aufs3-kbuild.patch
patch -Np1 -i ../aufs3-standalone.git/aufs3-base.patch
patch -Np1 -i ../aufs3-standalone.git/aufs3-mmap.patch
patch -Np1 -i ../aufs3-standalone.git/aufs3-standalone.patch
進入 menuconfig 選擇 aufs, 然後 make ...
example :
$ mkdir /tmp/rw /tmp/aufs
# mount -t aufs -o br=/tmp/rw:${HOME} none /tmp/aufs
Here is another example. The result is equivalent.
# mount -t aufs -o br=/tmp/rw=rw:${HOME}=ro none /tmp/aufs
留言
張貼留言