public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL53 - gfs2-utils: Bug 482734 - No longer able to mount GFS volume with noatime, noquota options
@ 2009-01-27 19:31 Abhijith Das
  0 siblings, 0 replies; only message in thread
From: Abhijith Das @ 2009-01-27 19:31 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=443747661081fc81d872e609585e831350fb0802
Commit:        443747661081fc81d872e609585e831350fb0802
Parent:        d494546f2c5d37ceadfdef2d99daba63d9432156
Author:        Abhijith Das <adas@redhat.com>
AuthorDate:    Tue Jan 27 11:37:37 2009 -0600
Committer:     Abhijith Das <adas@redhat.com>
CommitterDate: Tue Jan 27 13:29:08 2009 -0600

gfs2-utils: Bug 482734 - No longer able to mount GFS volume with noatime,noquota options

Z-stream clone of Bug 481762
A previously committed patch to allow NOATIME and NODIRATIME
http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=ea8e447f55864271a645a0b5ab32fb383bb8ad96
was broken. It didn't allow any other extra mount option to be used in
conjunction with noatime or nodiratime. Mount would fail with an
'invalid argument' error. This patch fixes the incorrect parsing that
causes the above error.
---
 gfs2/mount/util.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gfs2/mount/util.c b/gfs2/mount/util.c
index 027250d..f45ff3c 100644
--- a/gfs2/mount/util.c
+++ b/gfs2/mount/util.c
@@ -154,6 +154,10 @@ void parse_opts(struct mount_options *mo)
 	/* Hack to get the noatime/nodiratime option through to gfs */
 	if ((mo->flags & (MS_NOATIME | MS_NODIRATIME)) &&
 	    (strcmp(mo->type, "gfs") == 0)) {
+		if (mo->extra[0]) {
+			strcat(mo->extra, ",");
+			extra_len += 1;
+		}
 		strcat(mo->extra, "gfs_noatime");
 		extra_len += strlen("gfs_noatime");
 	}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-27 19:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-27 19:31 cluster: RHEL53 - gfs2-utils: Bug 482734 - No longer able to mount GFS volume with noatime, noquota options Abhijith Das

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).