[Cluster-devel] cluster/gfs2/mount umount.gfs2.c
rpeterso at sourceware.org
rpeterso at sourceware.org
Fri Dec 1 22:51:19 UTC 2006
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
--- cluster/gfs2/mount/umount.gfs2.c 2006/07/28 13:58:10 1.12
+++ cluster/gfs2/mount/umount.gfs2.c 2006/12/01 22:51:18 1.12.4.1
@@ -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);
More information about the Cluster-devel
mailing list