Rus, thanks for your reply.
The problem that I face is that I have an external hard disk on which I have a filesystem that is auto mounted. My software application uses this filesystem. I want to know from the application when the disk containing the filesystem becomes unavailable.
/etc/mtab and /proc/mounts don't get updated if the media containing the filesystem is suddenly not available.