From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Fri, 22 Jul 2011 09:35:53 +0100 Subject: [Cluster-devel] [PATCH] mount.gfs2 - gfs2 mounts doubled up in mtab In-Reply-To: <280913532.167648.1311192646977.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> References: <280913532.167648.1311192646977.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> Message-ID: <1311323753.2804.5.camel@menhir> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, On Wed, 2011-07-20 at 16:10 -0400, Abhijith Das wrote: > When the -o remount option is used with mount.gfs2 it fails to remove the original mtab entry because it can't find it. Instead it simply adds the mount entry corresponding to the remount, thereby doubling the entries in mtab. This patch corrects the logic to find the mtab entry so mount.gfs2 finds and removes the original entry correctly before add the the remount entry. > > Signed-off-by: Abhi Das + sscanf(line, "%s %s %s", device, path, type); This seems to remove the error checking for argument assignment from sscanf, Steve.