finding filesystem availability
Is there a simple way - without making statfs call - to find out if a currently mounted filesystem is unavailable?
The filesystem could be unavailable because the hosting disk is no longer available. |
Not 100% sure but you could poll /etc/mtab though TBH I don't think that will take care of stale NFS mounts
Rus |
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. -Anil |
All times are GMT -5. The time now is 07:41 AM. |