Gitweb:
http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitd...
Commit: 71f46b8688811540f0bfd53b63b55915a5b34ebc
Parent: 06b5fb874d5bd782cf64d6f451098ea684ca6e67
Author: Abhijith Das <adas(a)redhat.com>
AuthorDate: Fri Feb 5 17:05:53 2010 -0600
Committer: Abhijith Das <adas(a)redhat.com>
CommitterDate: Fri Feb 5 17:05:53 2010 -0600
mount.gfs2: Better error reporting when mounting a gfs fs without enough journals
use EUSERS to signal to mount helper about insufficient journals so it doesn't display
a cryptic message
rhbz#537201
---
gfs2/mount/mount.gfs2.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gfs2/mount/mount.gfs2.c b/gfs2/mount/mount.gfs2.c
index c24d056..610a7f8 100644
--- a/gfs2/mount/mount.gfs2.c
+++ b/gfs2/mount/mount.gfs2.c
@@ -212,6 +212,8 @@ int main(int argc, char **argv)
if (errno == EBUSY)
die("%s already mounted or %s busy\n", mo.dev, mo.dir);
+ else if (errno == EUSERS)
+ die("Too many nodes mounting filesystem, no free journals\n");
die("error mounting %s on %s: %s\n", mo.dev, mo.dir,
strerror(errno));
}