Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 78977

Summary: OpenAFS init script: ext2 partition needed even if "-memcache" option supplied
Product: Gentoo Linux Reporter: G.A. <yasi>
Component: Current packagesAssignee: Stefaan De Roeck (RETIRED) <stefaan>
Status: RESOLVED FIXED    
Severity: minor CC: net-fs
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description G.A. 2005-01-21 11:09:40 UTC
If "-memcache" is supplied in the OPTIONS variable in /etc/afs/afs.conf, then openafs runs with a memory cache, instead of a disk cache. However, the rc script will give you "Error: No ext2 partition for afs cache", since it will still look for a required ext2 partition.

Reproducible: Always
Steps to Reproduce:
1. Emerge (any) openafs
2. Edit /etc/afs/afs.conf and add "-memcache" to OPTIONS
3. Run "/etc/init.d/afs start"

Actual Results:  
You get "Error: No ext2 partition for afs cache" 

Expected Results:  
The init script shouldn't complain; rather it should start afsd 

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.4.28-gentoo-r5 i686) 
================================================================= 
System uname: 2.4.28-gentoo-r5 i686 Intel(R) Xeon(TM) CPU 3.20GHz 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux-headers-2.4.21-r1 
Libtools: sys-devel/libtool-1.5.2-r7 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium4 -mcpu=pentium4 -pipe -mmmx -msse -msse2 
-mfpmath=sse -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=pentium4 -mcpu=pentium4 -pipe -mmmx -msse -msse2 
-mfpmath=sse -fomit-frame-pointer -finline-functions" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ 
http://gentoo.ccccom.com http://cudlug.cudenver.edu/gentoo/ 
http://open-systems.ufl.edu/mirrors/gentoo" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 X Xaw3d afs alsa apache2 apm arts avi bitmap-fonts crypt f77 
font-server foomaticdb fortran gdbm gif gtk gtk2 imap imlib java jpeg kde 
libg++ libwww mad mbox mikmod mmx motif mpeg ncurses nls oggvorbis opengl oss 
pam pdflib perl png python qt quicktime readline spell sse ssl tcpd tiff 
truetype truetype-fonts type1-fonts xinerama xml2 xmms xv zlib"
Comment 1 Maurice van der Pot (RETIRED) gentoo-dev 2005-06-30 14:30:05 UTC
OpenAFS needs a developer to take up maintenance.
Comment 2 Stefaan De Roeck (RETIRED) gentoo-dev 2005-07-28 09:39:45 UTC
New ebuilds for openafs 1.2.13 (stable) and 1.3.85 (experimental) are available
for testing.  According to openafs-ml, 1.3.85 is currently undergoing testing so
it can become 1.4rc.

The check for the mounted ext2 partition as diskcache has been obsoleted in
these ebuilds (because the restriction is too limited anyway).  Sane
configuration is left as the administrator's responsibility.  Therefore the
problem shouldn't occur with the new ebuilds anymore.

It'd be great if the new ebuilds could be tested.
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2005-08-16 06:57:39 UTC
Fixed, as the check for an ext2 partition has been obsoleted.