The code to check the exit code from glusterfs gets one that only indicates glusterfs was able to fork, not that the mount actually succeeded. Therefore, the code to use backupvolfile_server would never get called. I'll send a patch as soon as I get a number for this bug.
Hi Jeff, bug 762935 is open for handling this issue. With current requirement of 'glusterd' for getting volume file, getting remote-port etc, there was some issues with it. Will have a chat here locally, and update on our take on properly returning the status of gluster process. Regards, Amar
The issue here is actually the return value is 0 even in case of failures. Marking duplicate of bug 762935 *** This bug has been marked as a duplicate of bug 1203 ***
PATCH: http://patches.gluster.com/patch/7796 in master (mount.glusterfs: fix to handle the error cases better)