From mboxrd@z Thu Jan 1 00:00:00 1970 From: teigland@sourceware.org Date: 11 Aug 2006 16:59:04 -0000 Subject: [Cluster-devel] cluster/gfs2/mount mount.gfs2.c Message-ID: <20060811165904.11142.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: teigland at sourceware.org 2006-08-11 16:59:04 Modified files: gfs2/mount : mount.gfs2.c Log message: report mount failure debug message earlier Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mount/mount.gfs2.c.diff?cvsroot=cluster&r1=1.16&r2=1.17 --- cluster/gfs2/mount/mount.gfs2.c 2006/07/28 13:58:10 1.16 +++ cluster/gfs2/mount/mount.gfs2.c 2006/08/11 16:59:03 1.17 @@ -174,6 +174,7 @@ rv = mount(mo.dev, mo.dir, fsname, mo.flags, mo.extra_plus); if (rv) { + log_debug("mount(2) failed error %d errno %d", rv, errno); if (!(mo.flags & MS_REMOUNT)) umount_lockproto(proto, &mo, &sb, errno); @@ -181,11 +182,10 @@ die("error %d mounting %s on %s\n", errno, mo.dev, mo.dir); } + log_debug("mount(2) ok"); block_signals(SIG_UNBLOCK); - log_debug("mount syscall returned %d", rv); - if (!(mo.flags & MS_REMOUNT)) add_mtab_entry(&mo);