Skip to contentSkip to conversation

cluster/gfs2/mount util.c

Cluster-devel [email protected] 1 participant 1 message Dec 5, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-12-05 22:25:29

Modified files:
gfs2/mount : util.c

Log message:
Pass gfs_controld the device being mounted, it'll use this if it needs to withdraw the fs.
bz 215962

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mount/util.c.diff?cvsroot=cluster&r1=1.18&r2=1.19

gfs2/mount/util.c +3 -3
@@ -409,12 +409,12 @@
 
 	/*
 	 * send request to gfs_controld for it to join mountgroup:
-	 * "join <mountpoint> gfs2 lock_dlm <locktable> <options>"
+	 * "join <mountpoint> gfs2 lock_dlm <locktable> <options> <dev>"
 	 */
 
 	memset(buf, 0, sizeof(buf));
-	rv = snprintf(buf, MAXLINE, "join %s %s %s %s %s",
-		      dir, fsname, proto, table, options);
+	rv = snprintf(buf, MAXLINE, "join %s %s %s %s %s %s",
+		      dir, fsname, proto, table, options, mo->dev);
 	if (rv >= MAXLINE) {
 		warn("lock_dlm_join: message too long: %d \"%s\"", rv, buf);
 		rv = -1;