Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38847 - OpenAFS 1.2.10-r1 startup scripts incorrectly prevent use of ext3 partitions as cache
Summary: OpenAFS 1.2.10-r1 startup scripts incorrectly prevent use of ext3 partitions ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-20 14:27 UTC by Stephen Bosch
Modified: 2005-08-16 06:33 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Bosch 2004-01-20 14:27:37 UTC
This e-build installs an /etc/init.d/afs startup script that

1. checks *only* for lines in /proc/mounts that contain 'vice' -- this is a dangerous assumption; people may have more than one partition that mounts to /usr/vice

2. checks *only* to see if the filesystem type 'ext2' is present in the corresponding line in /proc/mounts. If not, the script returns 1 and it fails.

Reproducible: Always
Steps to Reproduce:
1. Install openafs-1.2.10-r1
2. Make the cache partition filesystem ext3 and mount it as normal OR mount more than one partition to a mountpoint below /usr/vice, placing it before the cache partition in /etc/fstab
3. Reboot or, at the prompt, type '/etc/init.d/afs start'

Actual Results:  
The following message is displayed at boot time or when the script is executed
from the prompt with '/etc/init.d/afs start':
>>> PLEASE CREATE A EXT2 (no reiserfs) PARTITION (of aprox. 200M)
>>> AND MOUNT IT TO /USR/VICE/CACHE !!!

Expected Results:  
1. More properly evaluate the cache partition by checking to make sure that the
line grepped from /etc/fstab contains *both* 'vice' and 'cache'
2. Allow ext3 partitions to act as cache partitions (which is safe).
Comment 1 Stephen Bosch 2004-01-20 15:09:36 UTC
Line 1 from "Expected Results" should read:
1. More properly evaluate the cache partition by checking to make sure that the
line grepped from /proc/mounts contains both 'vice' *and* 'cache'
Comment 2 Johan Ymerson 2004-10-21 06:15:57 UTC
I have commited a modified ebuild (bug #59624) that fixes this and various other problems. Nothing has happend in the portage tree though...
Comment 3 Maurice van der Pot (RETIRED) gentoo-dev 2005-06-30 14:30:06 UTC
OpenAFS needs a developer to take up maintenance.
Comment 4 Stefaan De Roeck (RETIRED) gentoo-dev 2005-08-16 06:33:01 UTC
Fixed in the latest (testing) ebuilds.  The check with /proc/mounts etc. has
been removed.  (Amongst the reasons: with -memcache there is no need for a
cache, the cache doesn't need to be on a seperate partition - let alone an ext2
partition, the cache size was being stored in two seperate places, ...  It is
now left to the user's responsibilities to configure it correctly.