Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376175 - Version bump sys-fs/aufs3
Summary: Version bump sys-fs/aufs3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: linux-3.0
  Show dependency tree
 
Reported: 2011-07-24 09:04 UTC by Justin Lecher (RETIRED)
Modified: 2011-08-28 09:50 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Workaround for kernels up to 3.0.1 (aufs2-kernel-3.0.1.patch,2.25 KB, patch)
2011-08-11 12:00 UTC, Michael Seifert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2011-07-24 09:04:19 UTC
There is no release yet. I will bump it directly when upstream releases the patches
Comment 1 Michael Seifert 2011-08-11 12:00:26 UTC
Created attachment 282913 [details, diff]
Workaround for kernels up to 3.0.1

I extracted the workaround used in the Gentoo LiveDVD 11.2. The developers simply patched the aufs2-0_p20110627.ebuild to use the 2.6.39 patches.

Installation works fine for 3.0.1, but I did not test functionality. It works however with kernel 3.0.0 in the LiveDVD.
Comment 2 Michael Seifert 2011-08-12 18:35:14 UTC
I have done some more testing and found out that the patch alone will not work.

The Gentoo LiveDVD 11.2 uses kernel-3.0.0-r1, a customized kernel that makes aufs2 work. If you do not have the patched sources, the installation will complete, but there will be warnings about missing symbols (didn't see that at first) and the module will not load.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2011-08-14 16:51:30 UTC
Upstream is working on aufs3 for linux-3. Still no real stable solution, but I am on testing.
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2011-08-15 06:40:35 UTC
o news
- aufs2.2 and aufs3 begin, and aufs2.1 becomes obsoleted.
  You can find "aufs-3.0" GIT branch in
  git://aufs.git.sourceforge.net/gitroot/aufs/aufs3-standalone.git
  for linux-3.0, and the utilities in
  git://aufs.git.sourceforge.net/gitroot/aufs/aufs-util.git.
  Note: there is no "3" in "aufs-util.git".
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2011-08-15 18:52:12 UTC
I added an initial version in the betagarden overlay. Please try this.
Comment 6 zhoumi 2011-08-16 09:40:13 UTC
aufs3 cannt work for 3.0.1, there will be warnings about missing symbols (didn't see that at first) and the module will not load.
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2011-08-16 09:44:20 UTC
(In reply to comment #6)
> aufs3 cannt work for 3.0.1, there will be warnings about missing symbols
> (didn't see that at first) and the module will not load.

it works here. Please show any error message.
Comment 8 zhoumi 2011-08-16 09:47:56 UTC
it says:
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol inode_sb_list_lock
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol fsnotify_put_mark
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol file_sb_list_del
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol do_splice_to
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol security_inode_permission
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol fsnotify_alloc_group
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol security_file_mmap
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol __devcgroup_inode_permission
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol fsnotify_init_mark
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol iterate_mounts
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol fsnotify_destroy_mark
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol lookup_hash
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol fsnotify_put_group
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol do_splice_from
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol do_truncate
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol security_file_permission
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol deny_write_access
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol security_inode_readlink
WARNING: //lib/modules/3.0.1-pf/misc/aufs.ko needs unknown symbol fsnotify_add_mark
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2011-08-16 10:00:58 UTC
Please sync the overlay and use a fresh kernel source dir. For me an pf sources everything is smooth.
Comment 10 zhoumi 2011-08-16 10:19:04 UTC
ok, the same in gentoo-sources:
first,
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "fsnotify_add_mark" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "security_inode_readlink" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "deny_write_access" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "security_file_permission" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "do_truncate" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "do_splice_from" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "fsnotify_put_group" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "lookup_hash" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "fsnotify_destroy_mark" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "iterate_mounts" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "fsnotify_init_mark" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "__devcgroup_inode_permission" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "security_file_mmap" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "fsnotify_alloc_group" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "security_inode_permission" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "do_splice_to" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "file_sb_list_del" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "fsnotify_put_mark" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!
WARNING: "inode_sb_list_lock" [/var/tmp/portage/sys-fs/aufs3-3_p20110815/work/aufs3-standalone/fs/aufs/aufs.ko] undefined!

then,
 * Removing sys-fs/aufs3-3_p20110815 from moduledb.
 * Updating module dependencies for 3.0.1-gentoo ...
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol inode_sb_list_lock
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol fsnotify_put_mark
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol file_sb_list_del
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol do_splice_to
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol security_inode_permission
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol fsnotify_alloc_group
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol security_file_mmap
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol __devcgroup_inode_permission
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol fsnotify_init_mark
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol iterate_mounts
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol fsnotify_destroy_mark
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol lookup_hash
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol fsnotify_put_group
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol do_splice_from
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol do_truncate
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol security_file_permission
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol deny_write_access
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol security_inode_readlink
WARNING: //lib/modules/3.0.1-gentoo/misc/aufs.ko needs unknown symbol fsnotify_add_mark                                                                [ ok ]
 * Adding module to moduledb.

Portage 2.2.0_alpha51 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 2.6.39-pf4 x86_64)
=================================================================
System uname: Linux-2.6.39-pf4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 16 Aug 2011 02:30:01 +0000
ccache version 3.1.5 [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2, 3.2-r2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo sunrise emacs science gentoo-zh systemd stonework
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/yp/Makefile"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-ph
p5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /e
tc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/sqfs/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/ http://gentoo.osuosl.org/"
LANG="zh_CN.UTF-8"
LC_ALL="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="zh_CN zh"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/sqfs/portages/layman/sunrise /sqfs/portages/layman/emacs /sqfs/portages/layman/science /sqfs/portages/layman/gentoo-zh /sqfs/portages/layman/systemd /home/zhou/zm-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X \ a52 aac acl acpi alsa amd64 ao apng bash-completion berkdb bzip2 cairo cdaudio cdda cdio cgi charconv cjk cli consolekit cracklib cron crypt cscope ctype cue curl cxx dbus devfs-compat device-mapper devil dia djvu dmx dri dts dvd dvdr emacs emacs23icons enca exif fastcgi fbcon flac fontconfig fortran fpm gallium gdbm gdu gif glitz gnome-keyring gnutls gpg gpm gtk gtkstyle hddtemp hibernate-script hscolour html i18n iconv id3tag ios ipv6 javascript jpeg kpathsea lcms ldap libnotify logrotate lua lzma mad mmx mmxext mng mozsvg mp3 mp4 mpeg mplayer mtp mudflap multilib musepack music mysql nas ncurses nls notify nptl nptlonly nsplugin ogg opengl openmp openssl oss oss4 pam pari24 pcre pdf perl png pppd python qt3support qt4 readline rrdtool sage samba savedconfig sdl session shadow smp sndfile srt sse sse2 sse3 ssl sslv2 ssse3 svg sysfs tcpd tftp threads tiff truetype udev unicode usb v8 vaapi vhosts vim vim-syntax vorbis wavpack wifi wma wma-fixed x264 xattr xcb xcomposite xetex xft xine xinerama xml xorg xosd xpm xulrunner xv xvid zlib zsh-completion" ALSA_CARDS="hda-intel loopback virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth lvm btrfs" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="synaptics keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 Justin Lecher (RETIRED) gentoo-dev 2011-08-16 10:45:46 UTC
Please attach your kernel config. It is unreproducable here
Comment 12 zhoumi 2011-08-16 11:13:42 UTC
ok, here is my kernel config file:
https://gist.github.com/1148868
Comment 13 Justin Lecher (RETIRED) gentoo-dev 2011-08-16 12:00:51 UTC
Still not reproducable here.

What I did:
1. rm -rf /usr/src/*
2. emerge =sys-kernel/pf-sources-3.0.1
3. cd /usr/src/linux
4. cp /tmp/kernel-3.0.1-gentoo .config
5. make oldconfig
6. make modules_prepare
7. emerge aufs3
8. make && make modules_install
9. emerge aufs3
Comment 14 zhoumi 2011-08-16 12:40:54 UTC
I just did:
1. emerge pf-sources
2. copy .config to /usr/src/linux
3. make && make modules_install
4. emerge aufs3

then I followed your steps and no warning again. 
that's weird.
Comment 15 Michael Seifert 2011-08-17 14:34:24 UTC
Thanks for the new ebuild!

On the first try, I received the same warnings as zhoumi. I gave it a second try using Justin's instructions (comment 13) and it installed without warnings. I assume the problem was that I did not call "make modules_prepare" prior to installing aufs3.
It only worked with pf-sources by the way.
Comment 16 Justin Lecher (RETIRED) gentoo-dev 2011-08-17 15:02:28 UTC
I tried vanilla, gentoo, pf and bfs? sources and it works everywhere
you need to clean out the source directory first.
Comment 17 zhoumi 2011-08-21 23:14:48 UTC
you must emerge aufs3 just after make modules_prepare, if not, the warning comes out.
Comment 18 Justin Lecher (RETIRED) gentoo-dev 2011-08-28 09:50:28 UTC
+  28 Aug 2011; Justin Lecher <jlec@gentoo.org> +files/aufs3-base-0.patch,
+  +files/aufs3-standalone-0.patch, +aufs3-3_p20110815.ebuild, +files/pax.patch,
+  +metadata.xml:
+  Moved to tree, fixes bug 376175
+