Tags: patch
Find a patch attached that really removes ocfs2 and gfs from
/etc/init.d/mountnfs.sh
/etc/init.d/umountnfs.sh and
/etc/network/if-up.d/mountnfs
OCFS2 needs ocfs2-tools package to work which provides o2cb and the cluster
stack necessary to mount ocfs2 file systems. Trying to mount those
filesystems in other init scripts will fail. Besides that ocfs2-tools
provides a second script -- /etc/init.d/ocfs2 -- that takes care of the
mounting and unmounting. I assume this issue is very similar to GFS.
Thanks,
Adi
PS: I think the severity of this bug can be downgraded to 'normal' or even
'minor' as the attempt of mounting and umounting ocfs2 volumes by the
initscript's files results in an error message but basically has no effect
besides that message.
--- etc/network/if-up.d/mountnfs 2011-08-17 17:37:24.000000000 +0200
+++ etc/network/if-up.d/mountnfs 2011-08-17 17:37:51.000000000 +0200
@@ -71,7 +71,7 @@
# NFSv4 requires idmapd, so start nfs-common no matter what the options are.
start_nfs=yes
;;
- smbfs|cifs|coda|ncp|ncpfs|ocfs2|gfs)
+ smbfs|cifs|coda|ncp|ncpfs)
;;
*)
FSTYPE=
--- etc/init.d/mountnfs.sh 2011-08-17 17:06:59.000000000 +0200
+++ etc/init.d/mountnfs.sh 2011-08-17 17:36:44.000000000 +0200
@@ -40,7 +40,7 @@
;;
esac
case "$FSTYPE" in
- nfs|nfs4|smbfs|cifs|coda|ncp|ncpfs|ocfs2|gfs)
+ nfs|nfs4|smbfs|cifs|coda|ncp|ncpfs)
;;
*)
continue
--- etc/init.d/umountnfs.sh 2011-08-17 17:06:54.000000000 +0200
+++ etc/init.d/umountnfs.sh 2011-08-17 17:09:30.000000000 +0200
@@ -63,7 +63,7 @@
;;
esac
case "$FSTYPE" in
- nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs)
+ nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda)
DIRS="$MTPT $DIRS"
;;
proc|procfs|linprocfs|devpts|usbfs|usbdevfs|sysfs)
@@ -72,7 +72,13 @@
esac
case "$OPTS" in
_netdev|*,_netdev|_netdev,*|*,_netdev,*)
- DIRS="$MTPT $DIRS"
+ case "$FSTYPE" in
+ ocfs2|gfs)
+ ;;
+ *)
+ DIRS="$MTPT $DIRS"
+ ;;
+ esac
;;
esac
done
_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-sysvinit-devel