Hide Forgot
When fuse_mount() fails, the following is seen: [2009-08-17 09:38:19] D [fuse-bridge.c:2743:init] glusterfs-fuse: fuse_mount() failed with error Success on mount point /mnt/gfs [2009-08-17 09:38:19] E [xlator.c:736:xlator_init_rec] xlator: Initialization of volume 'fuse' failed, review your volfile again Appropriate error needs to be printed in the debug.
The problem is that "Appropriate error needs to be printed in the debug" is not really possible to fulfil. We don't know anything here about the reasons of the failure. fuse_mount() doesn't set an errno (and we see "Success" there because that's what strerror(0) gives with glibc). Best that can be done here is to separate error messages further, like if (errno) gf_log (... strerror (errno) ...); else gf_log (... lame excuse ...); -- if it is worth for the effort at all.
(In reply to comment #1) > The problem is that "Appropriate error needs to be printed in the debug" is not > really possible to fulfil. We don't know anything here about the reasons of the > failure. fuse_mount() doesn't set an errno (and we see "Success" there because > that's what strerror(0) gives with glibc). > > Best that can be done here is to separate error messages further, like > > if (errno) > gf_log (... strerror (errno) ...); > else > gf_log (... lame excuse ...); > > -- if it is worth for the effort at all. I think it is worth the effort since we are avoiding an oxymoron like "failed with error Success" and hence prevent a screenshot of glusterfs in DailyWTF :-)
PATCH: http://patches.gluster.com/patch/1057 in release-2.0 (fuse: don't say "Success" when mount fails)