[Cluster-devel] [PATCH] add -l option support to umount

Kadlecsik Jozsef kadlec at mail.kfki.hu
Wed Apr 1 09:39:07 UTC 2009


Hi,

umount.gfs[2] does not support the '-l' flag, which is passed by recent(?) 
umount to the filesystem-specific umount program. The trivial patch below 
adds the flag so that umount.gfs[2] does not fail seeing the flag:

--- mount.orig/umount.gfs2.c	2009-01-22 13:33:51.000000000 +0100
+++ mount/umount.gfs2.c	2009-04-01 11:28:15.000000000 +0200
@@ -44,7 +44,7 @@
 	/* FIXME: check for "quiet" option and don't print in that case */
 
 	while (cont) {
-		optchar = getopt(argc, argv, "fhVvX:r");
+		optchar = getopt(argc, argv, "fhVvX:rl");
 
 		switch (optchar) {
 		case EOF:
@@ -74,6 +74,9 @@
 		case 'r':
 			break; /* used by umount to remount ro if umount fails */
 
+		case 'l':
+			break; /* lazy umount option used by umount */
+
 		default:
 			break;
 		}

Best regards,
Jozsef
--
E-mail : kadlec at mail.kfki.hu, kadlec at blackhole.kfki.hu
PGP key: http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address: KFKI Research Institute for Particle and Nuclear Physics
         H-1525 Budapest 114, POB. 49, Hungary




More information about the Cluster-devel mailing list