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

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



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rpeterso sourceware org	2006-12-01 22:50:06

Modified files:
	gfs2/mount     : umount.gfs2.c 

Log message:
	Resolves: bz218134: GFS & GFS2: umount while busy gives bogus error
	message.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mount/umount.gfs2.c.diff?cvsroot=cluster&r1=1.12&r2=1.13

--- cluster/gfs2/mount/umount.gfs2.c	2006/07/28 13:58:10	1.12
+++ cluster/gfs2/mount/umount.gfs2.c	2006/12/01 22:50:05	1.13
@@ -130,9 +130,12 @@
 	parse_opts(&mo);
 
 	rv = umount(mo.dir);
-	if (rv)
-		die("error %d unmounting %s\n", errno, mo.dir);
-
+	if (rv) {
+		if (errno == EBUSY)
+			die("%s: device is busy.\n", mo.dir);
+		else
+			die("error %d unmounting %s\n", errno, mo.dir);
+	}
 	proto = select_lockproto(&mo, &sb);
 	umount_lockproto(proto, &mo, &sb);
 


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