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

[Cluster-devel] cluster/gfs2/mount mount.gfs2.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland 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);
 


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