Skip to contentSkip to conversation

cluster/gfs2/mount mount.gfs2.c

Cluster-devel [email protected] 1 participant 1 message Aug 11, 2006

lore
Share & tools
lore
#0 lore raw

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

gfs2/mount/mount.gfs2.c +2 -2
@@ -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);