commit fabddd788110b7812b4d4d856db02644ef36756f Author: Abhijith Das <adas@redhat.com> Date: Fri Jun 4 11:23:23 2010 -0500 gfs2-utils: 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 Resolves: rhbz#537201 Signed-off-by: Abhi Das <adas@redhat.com> diff --git a/gfs2/mount/mount.gfs2.c b/gfs2/mount/mount.gfs2.c index d8a60c3..1ef6ccd 100644 --- a/gfs2/mount/mount.gfs2.c +++ b/gfs2/mount/mount.gfs2.c @@ -243,6 +243,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)); }