From mboxrd@z Thu Jan 1 00:00:00 1970 From: fabbione@sourceware.org Date: 21 Jan 2008 14:37:57 -0000 Subject: [Cluster-devel] cluster/gfs2/mount umount.gfs2.c Message-ID: <20080121143757.1446.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- 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; }