<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>93903</bug_id>
          
          <creation_ts>2005-05-25 02:13 0000</creation_ts>
          <short_desc>gfs init script fails if you have more than one gfs volume</short_desc>
          <delta_ts>2005-06-14 02:47:51 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Unspecified</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>almagro@web.de</reporter>
          <assigned_to>xmerlin@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>almagro@web.de</who>
            <bug_when>2005-05-25 02:13:02 0000</bug_when>
            <thetext>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 &quot;Mounting GFS filesystems&quot;
                        device=&quot;&quot;
                        for device in ${remaining_verified}; do
-                               local target=&quot;$(awk &apos;!/^#/ &amp;&amp; $3 == &quot;gfs&quot;  { if (&quot;$1&quot; -eq &quot;${device}&quot; ) print $2 }&apos; /
etc/fstab)&quot;
-                               local mounted=&quot;$(awk &apos;$3 == &quot;gfs&quot;  { if (&quot;$1&quot; -eq &quot;${device}&quot; ) print $2 }&apos; /proc/
mounts)&quot;
+                               local target=&quot;$(awk &apos;!/^#/ &amp;&amp; $3 == &quot;gfs&quot; &amp;&amp; $1 == device { print $2 }&apos; device=$
{device} /etc/fstab)&quot;
+                               local mounted=&quot;$(awk &apos;$3 == &quot;gfs&quot; &amp;&amp; $1 == device { print $2 }&apos; device=$
{device} /proc/mounts)&quot;
 
                                # mount only filesystems not already mounted
                                if [ -z &quot;${mounted}&quot; ]; 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=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -mcpu=i686 -march=pentium4 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/
share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -march=pentium4 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://mirror.switch.ch/mirror/gentoo/&quot;
MAKEOPTS=&quot;-j5&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.de.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xmerlin@gentoo.org</who>
            <bug_when>2005-06-14 02:47:51 0000</bug_when>
            <thetext>fixed in cvs. thanks</thetext>
          </long_desc>
      
    </bug>

</bugzilla>