[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 mail kfki hu, kadlec 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]