[PATCH] sysvinit: include 'ceph' in list of network file systems

Sage Weil sage at newdream.net
Thu May 6 22:04:23 UTC 2010


Ceph is a distributed network file system (package 'ceph') that needs to
be mounted with other netowrk file system, after the network is up.

Signed-off-by: Sage Weil <sage at newdream.net>
---
 debian/src/initscripts/etc/init.d/mountall.sh      |    2 +-
 debian/src/initscripts/etc/init.d/mountnfs.sh      |    2 +-
 debian/src/initscripts/etc/init.d/umountnfs.sh     |    2 +-
 .../src/initscripts/etc/network/if-up.d/mountnfs   |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/src/initscripts/etc/init.d/mountall.sh b/debian/src/initscripts/etc/init.d/mountall.sh
index 405839c..1daf994 100644
--- a/debian/src/initscripts/etc/init.d/mountall.sh
+++ b/debian/src/initscripts/etc/init.d/mountall.sh
@@ -27,7 +27,7 @@ do_start() {
 	# Mount local file systems in /etc/fstab.
 	#
 	mount_all_local() {
-	    mount -a -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs,gfs2 \
+	    mount -a -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs,gfs2,ceph \
 		-O no_netdev
 	}
 	pre_mountall
diff --git a/debian/src/initscripts/etc/init.d/mountnfs.sh b/debian/src/initscripts/etc/init.d/mountnfs.sh
index 8d07bb7..51164f5 100644
--- a/debian/src/initscripts/etc/init.d/mountnfs.sh
+++ b/debian/src/initscripts/etc/init.d/mountnfs.sh
@@ -40,7 +40,7 @@ do_wait_async_mount() {
 			;;
 		esac
 		case "$FSTYPE" in
-		  nfs|nfs4|smbfs|cifs|coda|ncp|ncpfs|ocfs2|gfs)
+		  nfs|nfs4|smbfs|cifs|coda|ncp|ncpfs|ocfs2|gfs|ceph)
 			;;
 		  *)
 			continue
diff --git a/debian/src/initscripts/etc/init.d/umountnfs.sh b/debian/src/initscripts/etc/init.d/umountnfs.sh
index 4838466..be46fd2 100644
--- a/debian/src/initscripts/etc/init.d/umountnfs.sh
+++ b/debian/src/initscripts/etc/init.d/umountnfs.sh
@@ -63,7 +63,7 @@ do_stop () {
 			;;
 		esac
 		case "$FSTYPE" in
-		  nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs)
+		  nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs|ceph)
 			DIRS="$MTPT $DIRS"
 			;;
 		  proc|procfs|linprocfs|devfs|devpts|usbfs|usbdevfs|sysfs)
diff --git a/debian/src/initscripts/etc/network/if-up.d/mountnfs b/debian/src/initscripts/etc/network/if-up.d/mountnfs
index 3564cfd..1d05515 100644
--- a/debian/src/initscripts/etc/network/if-up.d/mountnfs
+++ b/debian/src/initscripts/etc/network/if-up.d/mountnfs
@@ -71,7 +71,7 @@ set_env() {
 			# 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|ocfs2|gfs|ceph)
 			;;
 		  *)
 			FSTYPE=
-- 
1.7.0






More information about the Pkg-sysvinit-devel mailing list