LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-30-2003, 05:08 AM   #1
akmore
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 4

Rep: Reputation: 0
Angry 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.
 
Old 07-30-2003, 05:26 AM   #2
jvds
Member
 
Registered: Jul 2003
Posts: 88

Rep: Reputation: 15
Not 100% sure but you could poll /etc/mtab though TBH I don't think that will take care of stale NFS mounts

Rus
 
Old 07-30-2003, 05:52 AM   #3
akmore
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Quake 3 - Availability bkeating Linux - Software 5 06-15-2005 03:35 AM
SUSE9.3 availability..? captain skywave SUSE / openSUSE 75 04-22-2005 10:49 PM
Is there a command for finding out the filesystem type? nodger Linux - Software 2 03-04-2005 04:04 PM
getopt availability Bostonian Programming 2 12-26-2004 11:37 AM
Availability of BSD in Uk dai *BSD 7 08-13-2002 11:18 AM


All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration