Skip to contentSkip to conversation

cluster/gfs2/mount umount.gfs2.c

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

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL50
Changes by: rpeterso at sourceware.org 2006-12-01 22:51:18

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&only_with_tag=RHEL50&r1=1.12&r2=1.12.4.1

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