cluster/gfs2/mount umount.gfs2.c
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione@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
--- cluster/gfs2/mount/umount.gfs2.c 2007/08/22 08:58:46 1.15
+++ cluster/gfs2/mount/umount.gfs2.c 2008/01/21 14:37:56 1.16
@@ -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;
}
|