diff options
author | Thomas Sachau <tommy@gentoo.org> | 2009-05-12 17:36:00 +0000 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2009-05-12 17:36:00 +0000 |
commit | fcdffafa0013e9528234599c7cbe474d7b17590e (patch) | |
tree | f5977c5651b259f3e316827df68da6025f04d97b /sys-fs/aufs2 | |
parent | Add /usr/share/timidity/freepats to timidity.cfg for instruments to be found ... (diff) | |
download | gentoo-2-fcdffafa0013e9528234599c7cbe474d7b17590e.tar.gz gentoo-2-fcdffafa0013e9528234599c7cbe474d7b17590e.tar.bz2 gentoo-2-fcdffafa0013e9528234599c7cbe474d7b17590e.zip |
Initial ebuild for aufs2
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'sys-fs/aufs2')
-rw-r--r-- | sys-fs/aufs2/ChangeLog | 11 | ||||
-rw-r--r-- | sys-fs/aufs2/aufs2-0_p20090504.ebuild | 95 | ||||
-rw-r--r-- | sys-fs/aufs2/files/aufs2-standalone-29.patch | 272 | ||||
-rw-r--r-- | sys-fs/aufs2/files/aufs2-standalone.patch | 228 | ||||
-rw-r--r-- | sys-fs/aufs2/files/utils-Makefile.patch | 18 | ||||
-rw-r--r-- | sys-fs/aufs2/metadata.xml | 12 |
6 files changed, 636 insertions, 0 deletions
diff --git a/sys-fs/aufs2/ChangeLog b/sys-fs/aufs2/ChangeLog new file mode 100644 index 000000000000..7db6456a74c3 --- /dev/null +++ b/sys-fs/aufs2/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-fs/aufs2 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs2/ChangeLog,v 1.1 2009/05/12 17:36:00 tommy Exp $ + +*aufs2-0_p20090504 (12 May 2009) + + 12 May 2009; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + +aufs2-0_p20090504.ebuild, +files/aufs2-standalone-29.patch, + +files/aufs2-standalone.patch, +files/utils-Makefile.patch, +metadata.xml: + Initial ebuild for aufs2 + diff --git a/sys-fs/aufs2/aufs2-0_p20090504.ebuild b/sys-fs/aufs2/aufs2-0_p20090504.ebuild new file mode 100644 index 000000000000..2da67d1b9189 --- /dev/null +++ b/sys-fs/aufs2/aufs2-0_p20090504.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs2/aufs2-0_p20090504.ebuild,v 1.1 2009/05/12 17:36:00 tommy Exp $ + +EGIT_REPO_URI="http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git" + +inherit git linux-mod toolchain-funcs + +DESCRIPTION="An entirely re-designed and re-implemented Unionfs" +HOMEPAGE="http://aufs.sourceforge.net" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="hinotify debug" + +DEPEND="" +RDEPEND="!sys-fs/aufs" + +MODULE_NAMES="aufs(misc:${S})" + +pkg_setup() { + get_version + if ! grep -qs "EXPORT_SYMBOL(deny_write_access);" ${KV_DIR}/fs/namei.c; then + ewarn "Patching your kernel..." + cd ${KV_DIR} + if kernel_is eq 2 6 27; then + epatch "${FILESDIR}"/aufs2-standalone.patch + elif kernel_is eq 2 6 28; then + epatch "${FILESDIR}"/aufs2-standalone.patch + elif kernel_is eq 2 6 29; then + epatch "${FILESDIR}"/aufs2-standalone-29.patch + else + die "no supported kernel found" + fi + elog "You need to compile your kernel with the applied patch" + elog "to be able to load and use the aufs kernel module" + fi + + linux-mod_pkg_setup +} +src_unpack() { + if kernel_is eq 2 6 27; then + EGIT_BRANCH="aufs2-27" + EGIT_TREE="bb1af7c7e7b5367f1bdc65586712a2519c032f07" + elif kernel_is eq 2 6 28; then + EGIT_BRANCH="aufs2-28" + EGIT_TREE="a69e4ba24b8b6896bc2a654b5b4436102fcd0441" + elif kernel_is eq 2 6 29; then + EGIT_BRANCH="aufs2-29" + EGIT_TREE="64b47672ffed5dd1ac4754146641494a69dd88ad" + else + die "no supported kernel found" + fi + git_src_unpack + cd "${S}" + echo -e "CONFIG_AUFS_BRANCH_MAX_127 = y\nAUFS_DEF_CONFIG = -DCONFIG_AUFS_MODULE -UCONFIG_AUFS" >> fs/aufs/magic.mk + + use hinotify && echo "CONFIG_AUFS_HINOTIFY = y" >> fs/aufs/magic.mk + use debug && echo "CONFIG_AUFS_DEBUG = y" >> fs/aufs/magic.mk + + tail -n 14 config.mk >> fs/aufs/magic.mk + echo -e "ccflags-y += -I\${S}/include\nccflags-y += \${AUFS_DEF_CONFIG}" >> fs/aufs/magic.mk + + EGIT_REPO_URI="http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-util.git" + EGIT_TREE="cf1c9a7766a2605dd95ceecc0ac0a5396e784f6d" + EGIT_PROJECT="aufs2-utils" + EGIT_BRANCH="" + S=${S}-utils + git_src_unpack + cd "${S}" + epatch "${FILESDIR}"/utils-Makefile.patch + S=${S/-utils} +} + +src_compile() { + ARCH=i386 + use amd64 && ARCH=x86_64 + emake CC=$(tc-getCC) CONFIG_AUFS_FS=m KDIR=${KV_DIR} || die + cd "${S}"-utils + emake CC=$(tc-getCC) AR=$(tc-getAR) KDIR=${KV_DIR} C_INCLUDE_PATH="${S}"/include || die +} + +src_install() { + linux-mod_src_install + doman Documentation/filesystems/aufs/aufs.5 || die + dodoc Documentation/filesystems/aufs/README || die + docinto design + dodoc Documentation/filesystems/aufs/design/*.txt || die + cd "${S}"-utils + emake DESTDIR="${D}" install || die + docinto + newdoc README README-utils || die +} diff --git a/sys-fs/aufs2/files/aufs2-standalone-29.patch b/sys-fs/aufs2/files/aufs2-standalone-29.patch new file mode 100644 index 000000000000..75ff5eeaa073 --- /dev/null +++ b/sys-fs/aufs2/files/aufs2-standalone-29.patch @@ -0,0 +1,272 @@ +aufs2 standalone patch for linux-2.6.29 + +diff --git a/fs/Makefile b/fs/Makefile +index dc20db3..a4e9a65 100644 +--- a/fs/Makefile ++++ b/fs/Makefile +@@ -124,3 +124,4 @@ obj-$(CONFIG_DEBUG_FS) += debugfs/ + obj-$(CONFIG_OCFS2_FS) += ocfs2/ + obj-$(CONFIG_BTRFS_FS) += btrfs/ + obj-$(CONFIG_GFS2_FS) += gfs2/ ++obj-$(CONFIG_AUFS_FS) += aufs/ +diff --git a/fs/namei.c b/fs/namei.c +index bbc15c2..e54d1b2 100644 +--- a/fs/namei.c ++++ b/fs/namei.c +@@ -335,6 +335,7 @@ int deny_write_access(struct file * file) + + return 0; + } ++EXPORT_SYMBOL(deny_write_access); + + /** + * path_get - get a reference to a path +@@ -1196,7 +1197,7 @@ out: + * needs parent already locked. Doesn't follow mounts. + * SMP-safe. + */ +-static struct dentry *lookup_hash(struct nameidata *nd) ++struct dentry *lookup_hash(struct nameidata *nd) + { + int err; + +@@ -1205,8 +1206,9 @@ static struct dentry *lookup_hash(struct nameidata *nd) + return ERR_PTR(err); + return __lookup_hash(&nd->last, nd->path.dentry, nd); + } ++EXPORT_SYMBOL(lookup_hash); + +-static int __lookup_one_len(const char *name, struct qstr *this, ++int __lookup_one_len(const char *name, struct qstr *this, + struct dentry *base, int len) + { + unsigned long hash; +@@ -1227,6 +1229,7 @@ static int __lookup_one_len(const char *name, struct qstr *this, + this->hash = end_name_hash(hash); + return 0; + } ++EXPORT_SYMBOL(__lookup_one_len); + + /** + * lookup_one_len - filesystem helper to lookup single pathname component +diff --git a/fs/namespace.c b/fs/namespace.c +index 06f8e63..b002ec3 100644 +--- a/fs/namespace.c ++++ b/fs/namespace.c +@@ -37,6 +37,9 @@ + + /* spinlock for vfsmount related operations, inplace of dcache_lock */ + __cacheline_aligned_in_smp DEFINE_SPINLOCK(vfsmount_lock); ++#ifdef CONFIG_AUFS_EXPORT ++EXPORT_SYMBOL(vfsmount_lock); ++#endif + + static int event; + static DEFINE_IDA(mnt_id_ida); +diff --git a/fs/open.c b/fs/open.c +index a3a78ce..d2f61c7 100644 +--- a/fs/open.c ++++ b/fs/open.c +@@ -220,6 +220,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs, + mutex_unlock(&dentry->d_inode->i_mutex); + return err; + } ++EXPORT_SYMBOL(do_truncate); + + static long do_sys_truncate(const char __user *pathname, loff_t length) + { +diff --git a/fs/splice.c b/fs/splice.c +index 4ed0ba4..57cce07 100644 +--- a/fs/splice.c ++++ b/fs/splice.c +@@ -888,8 +888,8 @@ EXPORT_SYMBOL(generic_splice_sendpage); + /* + * Attempt to initiate a splice from pipe to file. + */ +-static long do_splice_from(struct pipe_inode_info *pipe, struct file *out, +- loff_t *ppos, size_t len, unsigned int flags) ++long do_splice_from(struct pipe_inode_info *pipe, struct file *out, ++ loff_t *ppos, size_t len, unsigned int flags) + { + int ret; + +@@ -908,13 +908,14 @@ static long do_splice_from(struct pipe_inode_info *pipe, struct file *out, + + return out->f_op->splice_write(pipe, out, ppos, len, flags); + } ++EXPORT_SYMBOL(do_splice_from); + + /* + * Attempt to initiate a splice from a file to a pipe. + */ +-static long do_splice_to(struct file *in, loff_t *ppos, +- struct pipe_inode_info *pipe, size_t len, +- unsigned int flags) ++long do_splice_to(struct file *in, loff_t *ppos, ++ struct pipe_inode_info *pipe, size_t len, ++ unsigned int flags) + { + int ret; + +@@ -930,6 +931,7 @@ static long do_splice_to(struct file *in, loff_t *ppos, + + return in->f_op->splice_read(in, ppos, pipe, len, flags); + } ++EXPORT_SYMBOL(do_splice_to); + + /** + * splice_direct_to_actor - splices data directly between two non-pipes +diff --git a/fs/super.c b/fs/super.c +index 6ce5014..af66b69 100644 +--- a/fs/super.c ++++ b/fs/super.c +@@ -287,6 +287,7 @@ int fsync_super(struct super_block *sb) + __fsync_super(sb); + return sync_blockdev(sb->s_bdev); + } ++EXPORT_SYMBOL(fsync_super); + + /** + * generic_shutdown_super - common helper for ->kill_sb() +diff --git a/include/linux/Kbuild b/include/linux/Kbuild +index 106c3ba..d0c7262 100644 +--- a/include/linux/Kbuild ++++ b/include/linux/Kbuild +@@ -34,6 +34,7 @@ header-y += atmppp.h + header-y += atmsap.h + header-y += atmsvc.h + header-y += atm_zatm.h ++header-y += aufs_type.h + header-y += auto_fs4.h + header-y += ax25.h + header-y += b1lli.h +diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h +index 23bf02f..49e5b47 100644 +--- a/include/linux/lockdep.h ++++ b/include/linux/lockdep.h +@@ -58,7 +58,7 @@ enum lock_usage_bit + #define LOCKF_USED_IN_IRQ_READ \ + (LOCKF_USED_IN_HARDIRQ_READ | LOCKF_USED_IN_SOFTIRQ_READ) + +-#define MAX_LOCKDEP_SUBCLASSES 8UL ++#define MAX_LOCKDEP_SUBCLASSES 12UL + + /* + * Lock-classes are keyed via unique addresses, by embedding the +diff --git a/include/linux/namei.h b/include/linux/namei.h +index fc2e035..182d43b 100644 +--- a/include/linux/namei.h ++++ b/include/linux/namei.h +@@ -75,6 +75,9 @@ extern struct file *lookup_instantiate_filp(struct nameidata *nd, struct dentry + extern struct file *nameidata_to_filp(struct nameidata *nd, int flags); + extern void release_open_intent(struct nameidata *); + ++extern struct dentry *lookup_hash(struct nameidata *nd); ++extern int __lookup_one_len(const char *name, struct qstr *this, ++ struct dentry *base, int len); + extern struct dentry *lookup_one_len(const char *, struct dentry *, int); + extern struct dentry *lookup_one_noperm(const char *, struct dentry *); + +diff --git a/include/linux/splice.h b/include/linux/splice.h +index 528dcb9..5123bc6 100644 +--- a/include/linux/splice.h ++++ b/include/linux/splice.h +@@ -71,4 +71,10 @@ extern ssize_t splice_to_pipe(struct pipe_inode_info *, + extern ssize_t splice_direct_to_actor(struct file *, struct splice_desc *, + splice_direct_actor *); + ++extern long do_splice_from(struct pipe_inode_info *pipe, struct file *out, ++ loff_t *ppos, size_t len, unsigned int flags); ++extern long do_splice_to(struct file *in, loff_t *ppos, ++ struct pipe_inode_info *pipe, size_t len, ++ unsigned int flags); ++ + #endif +diff --git a/security/device_cgroup.c b/security/device_cgroup.c +index 3aacd0f..b900dc3 100644 +--- a/security/device_cgroup.c ++++ b/security/device_cgroup.c +@@ -507,6 +507,7 @@ acc_check: + + return -EPERM; + } ++EXPORT_SYMBOL(devcgroup_inode_permission); + + int devcgroup_inode_mknod(int mode, dev_t dev) + { +diff --git a/security/security.c b/security/security.c +index c3586c0..8b0495f 100644 +--- a/security/security.c ++++ b/security/security.c +@@ -389,6 +389,7 @@ int security_path_mkdir(struct path *path, struct dentry *dentry, int mode) + return 0; + return security_ops->path_mkdir(path, dentry, mode); + } ++EXPORT_SYMBOL(security_path_mkdir); + + int security_path_rmdir(struct path *path, struct dentry *dentry) + { +@@ -396,6 +397,7 @@ int security_path_rmdir(struct path *path, struct dentry *dentry) + return 0; + return security_ops->path_rmdir(path, dentry); + } ++EXPORT_SYMBOL(security_path_rmdir); + + int security_path_unlink(struct path *path, struct dentry *dentry) + { +@@ -403,6 +405,7 @@ int security_path_unlink(struct path *path, struct dentry *dentry) + return 0; + return security_ops->path_unlink(path, dentry); + } ++EXPORT_SYMBOL(security_path_unlink); + + int security_path_symlink(struct path *path, struct dentry *dentry, + const char *old_name) +@@ -411,6 +414,7 @@ int security_path_symlink(struct path *path, struct dentry *dentry, + return 0; + return security_ops->path_symlink(path, dentry, old_name); + } ++EXPORT_SYMBOL(security_path_symlink); + + int security_path_link(struct dentry *old_dentry, struct path *new_dir, + struct dentry *new_dentry) +@@ -419,6 +423,7 @@ int security_path_link(struct dentry *old_dentry, struct path *new_dir, + return 0; + return security_ops->path_link(old_dentry, new_dir, new_dentry); + } ++EXPORT_SYMBOL(security_path_link); + + int security_path_rename(struct path *old_dir, struct dentry *old_dentry, + struct path *new_dir, struct dentry *new_dentry) +@@ -429,6 +434,7 @@ int security_path_rename(struct path *old_dir, struct dentry *old_dentry, + return security_ops->path_rename(old_dir, old_dentry, new_dir, + new_dentry); + } ++EXPORT_SYMBOL(security_path_rename); + + int security_path_truncate(struct path *path, loff_t length, + unsigned int time_attrs) +@@ -437,6 +443,7 @@ int security_path_truncate(struct path *path, loff_t length, + return 0; + return security_ops->path_truncate(path, length, time_attrs); + } ++EXPORT_SYMBOL(security_path_truncate); + #endif + + int security_inode_create(struct inode *dir, struct dentry *dentry, int mode) +@@ -506,6 +513,7 @@ int security_inode_readlink(struct dentry *dentry) + return 0; + return security_ops->inode_readlink(dentry); + } ++EXPORT_SYMBOL(security_inode_readlink); + + int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd) + { +@@ -520,6 +528,7 @@ int security_inode_permission(struct inode *inode, int mask) + return 0; + return security_ops->inode_permission(inode, mask); + } ++EXPORT_SYMBOL(security_inode_permission); + + int security_inode_setattr(struct dentry *dentry, struct iattr *attr) + { diff --git a/sys-fs/aufs2/files/aufs2-standalone.patch b/sys-fs/aufs2/files/aufs2-standalone.patch new file mode 100644 index 000000000000..775f9ed7ef21 --- /dev/null +++ b/sys-fs/aufs2/files/aufs2-standalone.patch @@ -0,0 +1,228 @@ +aufs2 standalone patch for linux-2.6.28 + +diff --git a/fs/Makefile b/fs/Makefile +index d9f8afe..1f206a2 100644 +--- a/fs/Makefile ++++ b/fs/Makefile +@@ -122,3 +122,4 @@ obj-$(CONFIG_HPPFS) += hppfs/ + obj-$(CONFIG_DEBUG_FS) += debugfs/ + obj-$(CONFIG_OCFS2_FS) += ocfs2/ + obj-$(CONFIG_GFS2_FS) += gfs2/ ++obj-$(CONFIG_AUFS_FS) += aufs/ +diff --git a/fs/namei.c b/fs/namei.c +index d34e0f9..2779304 100644 +--- a/fs/namei.c ++++ b/fs/namei.c +@@ -341,6 +341,7 @@ int deny_write_access(struct file * file) + + return 0; + } ++EXPORT_SYMBOL(deny_write_access); + + /** + * path_get - get a reference to a path +@@ -1212,7 +1213,7 @@ out: + * needs parent already locked. Doesn't follow mounts. + * SMP-safe. + */ +-static struct dentry *lookup_hash(struct nameidata *nd) ++struct dentry *lookup_hash(struct nameidata *nd) + { + int err; + +@@ -1221,8 +1222,9 @@ static struct dentry *lookup_hash(struct nameidata *nd) + return ERR_PTR(err); + return __lookup_hash(&nd->last, nd->path.dentry, nd); + } ++EXPORT_SYMBOL(lookup_hash); + +-static int __lookup_one_len(const char *name, struct qstr *this, ++int __lookup_one_len(const char *name, struct qstr *this, + struct dentry *base, int len) + { + unsigned long hash; +@@ -1243,6 +1245,7 @@ static int __lookup_one_len(const char *name, struct qstr *this, + this->hash = end_name_hash(hash); + return 0; + } ++EXPORT_SYMBOL(__lookup_one_len); + + /** + * lookup_one_len - filesystem helper to lookup single pathname component +diff --git a/fs/namespace.c b/fs/namespace.c +index 65b3dc8..2a51243 100644 +--- a/fs/namespace.c ++++ b/fs/namespace.c +@@ -37,6 +37,9 @@ + + /* spinlock for vfsmount related operations, inplace of dcache_lock */ + __cacheline_aligned_in_smp DEFINE_SPINLOCK(vfsmount_lock); ++#ifdef CONFIG_AUFS_EXPORT ++EXPORT_SYMBOL(vfsmount_lock); ++#endif + + static int event; + static DEFINE_IDA(mnt_id_ida); +diff --git a/fs/open.c b/fs/open.c +index 83cdb9d..bb43dab 100644 +--- a/fs/open.c ++++ b/fs/open.c +@@ -222,6 +222,7 @@ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs, + mutex_unlock(&dentry->d_inode->i_mutex); + return err; + } ++EXPORT_SYMBOL(do_truncate); + + static long do_sys_truncate(const char __user *pathname, loff_t length) + { +diff --git a/fs/splice.c b/fs/splice.c +index 1abab5c..7b7d65e 100644 +--- a/fs/splice.c ++++ b/fs/splice.c +@@ -887,8 +887,8 @@ EXPORT_SYMBOL(generic_splice_sendpage); + /* + * Attempt to initiate a splice from pipe to file. + */ +-static long do_splice_from(struct pipe_inode_info *pipe, struct file *out, +- loff_t *ppos, size_t len, unsigned int flags) ++long do_splice_from(struct pipe_inode_info *pipe, struct file *out, ++ loff_t *ppos, size_t len, unsigned int flags) + { + int ret; + +@@ -907,13 +907,14 @@ static long do_splice_from(struct pipe_inode_info *pipe, struct file *out, + + return out->f_op->splice_write(pipe, out, ppos, len, flags); + } ++EXPORT_SYMBOL(do_splice_from); + + /* + * Attempt to initiate a splice from a file to a pipe. + */ +-static long do_splice_to(struct file *in, loff_t *ppos, +- struct pipe_inode_info *pipe, size_t len, +- unsigned int flags) ++long do_splice_to(struct file *in, loff_t *ppos, ++ struct pipe_inode_info *pipe, size_t len, ++ unsigned int flags) + { + int ret; + +@@ -929,6 +930,7 @@ static long do_splice_to(struct file *in, loff_t *ppos, + + return in->f_op->splice_read(in, ppos, pipe, len, flags); + } ++EXPORT_SYMBOL(do_splice_to); + + /** + * splice_direct_to_actor - splices data directly between two non-pipes +diff --git a/fs/super.c b/fs/super.c +index 400a760..a1df361 100644 +--- a/fs/super.c ++++ b/fs/super.c +@@ -270,6 +270,7 @@ int fsync_super(struct super_block *sb) + __fsync_super(sb); + return sync_blockdev(sb->s_bdev); + } ++EXPORT_SYMBOL(fsync_super); + + /** + * generic_shutdown_super - common helper for ->kill_sb() +diff --git a/fs/sync.c b/fs/sync.c +index 2967562..34040d6 100644 +--- a/fs/sync.c ++++ b/fs/sync.c +@@ -104,6 +104,7 @@ long do_fsync(struct file *file, int datasync) + out: + return ret; + } ++EXPORT_SYMBOL(do_fsync); + + static long __do_fsync(unsigned int fd, int datasync) + { +diff --git a/include/linux/Kbuild b/include/linux/Kbuild +index e531783..14ecb7c 100644 +--- a/include/linux/Kbuild ++++ b/include/linux/Kbuild +@@ -34,6 +34,7 @@ header-y += atmppp.h + header-y += atmsap.h + header-y += atmsvc.h + header-y += atm_zatm.h ++header-y += aufs_type.h + header-y += auto_fs4.h + header-y += ax25.h + header-y += b1lli.h +diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h +index 29aec6e..dfcb13b 100644 +--- a/include/linux/lockdep.h ++++ b/include/linux/lockdep.h +@@ -58,7 +58,7 @@ enum lock_usage_bit + #define LOCKF_USED_IN_IRQ_READ \ + (LOCKF_USED_IN_HARDIRQ_READ | LOCKF_USED_IN_SOFTIRQ_READ) + +-#define MAX_LOCKDEP_SUBCLASSES 8UL ++#define MAX_LOCKDEP_SUBCLASSES 12UL + + /* + * Lock-classes are keyed via unique addresses, by embedding the +diff --git a/include/linux/namei.h b/include/linux/namei.h +index 99eb803..f6cdf1c 100644 +--- a/include/linux/namei.h ++++ b/include/linux/namei.h +@@ -75,6 +75,9 @@ extern struct file *lookup_instantiate_filp(struct nameidata *nd, struct dentry + extern struct file *nameidata_to_filp(struct nameidata *nd, int flags); + extern void release_open_intent(struct nameidata *); + ++extern struct dentry *lookup_hash(struct nameidata *nd); ++extern int __lookup_one_len(const char *name, struct qstr *this, ++ struct dentry *base, int len); + extern struct dentry *lookup_one_len(const char *, struct dentry *, int); + extern struct dentry *lookup_one_noperm(const char *, struct dentry *); + +diff --git a/include/linux/splice.h b/include/linux/splice.h +index 528dcb9..5123bc6 100644 +--- a/include/linux/splice.h ++++ b/include/linux/splice.h +@@ -71,4 +71,10 @@ extern ssize_t splice_to_pipe(struct pipe_inode_info *, + extern ssize_t splice_direct_to_actor(struct file *, struct splice_desc *, + splice_direct_actor *); + ++extern long do_splice_from(struct pipe_inode_info *pipe, struct file *out, ++ loff_t *ppos, size_t len, unsigned int flags); ++extern long do_splice_to(struct file *in, loff_t *ppos, ++ struct pipe_inode_info *pipe, size_t len, ++ unsigned int flags); ++ + #endif +diff --git a/security/device_cgroup.c b/security/device_cgroup.c +index 5ba7870..8f880c2 100644 +--- a/security/device_cgroup.c ++++ b/security/device_cgroup.c +@@ -507,6 +507,7 @@ acc_check: + + return -EPERM; + } ++EXPORT_SYMBOL(devcgroup_inode_permission); + + int devcgroup_inode_mknod(int mode, dev_t dev) + { +diff --git a/security/security.c b/security/security.c +index c0acfa7..b8106c5 100644 +--- a/security/security.c ++++ b/security/security.c +@@ -434,6 +434,7 @@ int security_inode_readlink(struct dentry *dentry) + return 0; + return security_ops->inode_readlink(dentry); + } ++EXPORT_SYMBOL(security_inode_readlink); + + int security_inode_follow_link(struct dentry *dentry, struct nameidata *nd) + { +@@ -448,6 +449,7 @@ int security_inode_permission(struct inode *inode, int mask) + return 0; + return security_ops->inode_permission(inode, mask); + } ++EXPORT_SYMBOL(security_inode_permission); + + int security_inode_setattr(struct dentry *dentry, struct iattr *attr) + { diff --git a/sys-fs/aufs2/files/utils-Makefile.patch b/sys-fs/aufs2/files/utils-Makefile.patch new file mode 100644 index 000000000000..b989fdab2770 --- /dev/null +++ b/sys-fs/aufs2/files/utils-Makefile.patch @@ -0,0 +1,18 @@ +--- Makefile 2009-05-10 19:23:32.000000000 +0200 ++++ Makefile.new 2009-05-10 19:23:49.000000000 +0200 +@@ -21,7 +21,6 @@ + + CFLAGS += -I${KDIR}/include + CFLAGS += -O -Wall +-LDFLAGS += -static -s + + Cmd = umount.aufs auchk #aubrsync + Etc = etc_default_aufs +@@ -55,6 +54,7 @@ + install_etc: File = etc_default_aufs + install_etc: Tgt = ${DESTDIR}/etc/default/aufs + install_sbin install_ubin install_etc: ${File} ++ mkdir -p ${Tgt} + install -m 755 -o root -g root -p ${File} ${Tgt} + install: install_sbin install_ubin install_etc + diff --git a/sys-fs/aufs2/metadata.xml b/sys-fs/aufs2/metadata.xml new file mode 100644 index 000000000000..2af1090ccd54 --- /dev/null +++ b/sys-fs/aufs2/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>tommy@gentoo.org</email> + </maintainer> + <use> + <flag name='hinotify'>Enable hinotify support</flag> + <flag name='debug'>Enable additional debugging support</flag> + </use> +</pkgmetadata> |