bash exit code when mount command failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hy, when a mount command fail (for some reason, server unavailable,
volume not exists....) the system don't show any error message.

I know that I can find the error on client-side in /var/log/glusterfs/*.log

I'm using glusterfs 3.2.1 and glusterd 3.2.1

These is the command that I'm using on client-side:

# mount -t glusterfs serveroff:/notexistvolume /mnt (the server not
exist and the volume not exist !)
# echo $?

when I digit "echo $?" I'm expect that the command return NOT 0 (zero).
I want using mount command in an external script bash and test if the
mount command are executed correctly.

I't possiple without "parse" the content of /var/log/glusterfs ?

thanks.


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux