Skip to contentSkip to conversation

cluster/gfs2/mount umount.gfs2.c

Cluster-devel [email protected] 1 participant 1 message Jan 21, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione at sourceware.org 2008-01-21 14:37:56

Modified files:
gfs2/mount : umount.gfs2.c

Log message:
Add fake support for -r option at umount so we don't fail if gfs2 is not umounted by it's init script.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mount/umount.gfs2.c.diff?cvsroot=cluster&r1=1.15&r2=1.16

gfs2/mount/umount.gfs2.c +4 -1
@@ -52,7 +52,7 @@
 	/* FIXME: check for "quiet" option and don't print in that case */
 
 	while (cont) {
-		optchar = getopt(argc, argv, "fhVvX:");
+		optchar = getopt(argc, argv, "fhVvX:r");
 
 		switch (optchar) {
 		case EOF:
@@ -79,6 +79,9 @@
 			print_version();
 			exit(EXIT_SUCCESS);
 
+		case 'r':
+			break; /* used by umount to remount ro if umount fails */
+
 		default:
 			break;
 		}