bash exit code when mount command failed

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

 



2011/7/11 Darren Austin <darren-lists at widgit.com>:
>
> I had noticed the same thing, and intended to post a note about it too :)
>
> The way I worked around this issue is to use the "mountpoint" command directly after the mount.
> Eg:
>
> mount -t glusterfs server:volume /mnt
> mountpoint /mnt
> echo $?
>
> ... will do what you want :)
>
Yea, great... is exactly wath I want, thanks.

I have write a post here
http://community.gluster.org/p/bash-exit-code-when-mount-command-failed/

thank you.


[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