Hi, T2 trunk SVN version has Kernel 3.x support (latest kernel is 3.0.3). T2 has UnionFS and Aufs union filesystem packages. AUFS used to have "aufs2" source tree, but that is now obsolete for Kernel 3.x versions because there is new AUFS3 and git source repository. Please see attached diff patch I have used to test AUFS3 kernel modules and aufs-utils userspace tools in T2. Pkg_linux26_pre.conf file uses installation instructions explained in http://aufs.sourceforge.net/ web page. Except that postinstall script does a dirty SED trick to install userspace /usr/include/linux/aufs_type.h file. Im not sure how to do it properly through Kernel tree "make install_headers" command (modifies on the fly kernel headers to make them userspace compatible). Best regards, Mika N ------------------ Patch for new package AUFS3: diff -rupN packages/filesystem/aufs3/aufs3.desc package/filesystem/aufs3/aufs3.desc --- packages/filesystem/aufs3/aufs3.desc 1970-01-01 02:00:00.000000000 +0200 +++ package/filesystem/aufs3/aufs3.desc 2011-08-20 15:14:35.862149772 +0300 @@ -0,0 +1,36 @@ +[COPY] --- T2-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch . +[COPY] +[COPY] T2 SDE: package/.../aufs3/aufs3.desc +[COPY] Copyright (C) 2007 - 2009 The T2 SDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- T2-COPYRIGHT-NOTE-END --- + +[I] Yet another Stackable Unification File System + +[T] Aufs is yet another stackable unification file system, which can appear +[T] to merge the contents of several directories (branches), while keeping +[T] their physical content separate. Aufs3-util is userspace tools and +[T] Aufs3-standalone is Linux kernel module (compiled as part of linux26 pkg). + +[U] http://aufs.sourceforge.net/ + +[A] Junjiro Okajima +[M] Rene Rebe <[email protected]> + +[C] extra/filesystem +[F] CROSS NOPARALLEL + +[L] GPL +[S] Beta +[V] 3.0 +[P] O -----5---9 200.000 + +[D] X aufs3-util-3.0.tar.bz2 git://aufs.git.sourceforge.net/gitroot/aufs/aufs-util.git origin/aufs3.0 +[D] X aufs3-standalone-3.0.tar.bz2 git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git origin/aufs3.0 diff -rupN packages/filesystem/aufs3/pkg_linux26_pre.conf package/filesystem/aufs3/pkg_linux26_pre.conf --- packages/filesystem/aufs3/pkg_linux26_pre.conf 1970-01-01 02:00:00.000000000 +0200 +++ package/filesystem/aufs3/pkg_linux26_pre.conf 2011-08-19 21:19:37.130120002 +0300 @@ -0,0 +1,43 @@ +# --- T2-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# T2 SDE: package/.../aufs3/pkg_linux26_pre.conf +# Copyright (C) 2009 The T2 SDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- T2-COPYRIGHT-NOTE-END --- + +echo_status "Including Aufs3 patches ..." + +aufs3_prepatch () { + # Extract Aufs3 source tarball, patch kernel and copy Aufs3 source files to Kernel tree + mkdir aufs3-tmp + tar -xvjf `match_source_file -p aufs3-standalone aufs3` -C aufs3-tmp + aufs3tardir=`ls aufs3-tmp` + + var_append patchfiles ' ' "$PWD/aufs3-tmp/$aufs3tardir/aufs3-kbuild.patch" + var_append patchfiles ' ' "$PWD/aufs3-tmp/$aufs3tardir/aufs3-base.patch" +# var_append patchfiles ' ' "$PWD/aufs3-tmp/$aufs3tardir/aufs3-proc_map.patch" + var_append patchfiles ' ' "$PWD/aufs3-tmp/$aufs3tardir/aufs3-standalone.patch" + + echo "Copying Aufs3 source files to Kernel source tree" + cp -ax aufs3-tmp/$aufs3tardir/{Documentation,fs} . + cp -ax aufs3-tmp/$aufs3tardir/include/linux/aufs_type.h include/linux/ +} + +aufs3_postmake () { + # Note! Proper way would be "make install_headers" in Kernel tree, + # but it would install lots of (potentially) other unnecessary header files. + # At the moment Aufs3 uses only one userspace header and it has only __user kernel tag + echo "Installing Aufs3 header to $includedir/linux/aufs_type.h" + sed "s/__user//g" aufs3-tmp/*/include/linux/aufs_type.h > $base$includedir/linux/aufs_type.h +} + +hook_add prepatch 1 aufs3_prepatch + +hook_add postmake 5 aufs3_postmake
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [email protected] with a subject of: unsubscribe t2
