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

Re: [Cluster-devel] [PATCH] mount.gfs2 - gfs2 mounts doubled up in mtab



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 <adas redhat com>

+               sscanf(line, "%s %s %s", device, path, type);

This seems to remove the error checking for argument assignment from
sscanf,

Steve.



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