Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93903 - gfs init script fails if you have more than one gfs volume
Summary: gfs init script fails if you have more than one gfs volume
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Christian Zoffoli (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 02:13 UTC by Thomas Rasch
Modified: 2005-06-14 02:47 UTC (History)
0 users

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 Thomas Rasch 2005-05-25 02:13:02 UTC
The init-script provided with the gfs package contains a bug that prevents it from mounting more than 
one gfs filesystem because it messes the mount points up.
The following patch should fix the problem:

--- gfs 2005-05-23 14:19:26.000000000 +0200
+++ gfs.neu     2005-05-25 10:46:40.000000000 +0200
@@ -48,8 +48,8 @@
                        einfo "Mounting GFS filesystems"
                        device=""
                        for device in ${remaining_verified}; do
-                               local target="$(awk '!/^#/ && $3 == "gfs"  { if ("$1" -eq "${device}" ) print $2 }' /
etc/fstab)"
-                               local mounted="$(awk '$3 == "gfs"  { if ("$1" -eq "${device}" ) print $2 }' /proc/
mounts)"
+                               local target="$(awk '!/^#/ && $3 == "gfs" && $1 == device { print $2 }' device=$
{device} /etc/fstab)"
+                               local mounted="$(awk '$3 == "gfs" && $1 == device { print $2 }' device=$
{device} /proc/mounts)"
 
                                # mount only filesystems not already mounted
                                if [ -z "${mounted}" ]; then


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.9-gentoo-
r9 i686)
===============================================================
==
System uname: 2.6.9-gentoo-r9 i686 Intel(R) Xeon(TM) CPU 3.20GHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r9
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/
share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups emboss encode foomaticdb fortran 
gdbm gif gpm gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod mmx mp3 mpeg ncurses nls 
oggvorbis opengl oss pam pdflib perl png python qt quicktime ruby sdl spell ssl svga tcpd truetype 
truetype-fonts type1-fonts xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Christian Zoffoli (RETIRED) gentoo-dev 2005-06-14 02:47:51 UTC
fixed in cvs. thanks