umount function call on Sola
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > umount function call on Sola




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    umount function call on Sola  
Bigdakine


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-28-04 11:19 PM


I have code which requires the remote mount of a file system. Before accessi
ng
this file system, this code first checks to see if the file server is alive.
 If
so, then it goes ahead and does what it needs to do on the remote file syste
m.
Mounting this remote file system is done by the automounter.

If the file server isn't alive, I'd like this code to then umount this file
system if it is already mounted.

So as a little test, I made a small c-program which calls umount, and unmoun
ts
a particular file system. Before running I do an ls -l on the file system wh
ich
causes it to be mounted, and then I execute the code as root. I get an error
code of zero on return.

I then run df -k, not expecting to see the remote file system present. What 
 I
actually see  is pretty weird.

server:/export/junk      0         0       0        0%    /export/junk

I did an ls -l again, and then ran the code again. df -k shows two lines lik
e
the one above.

Is there something else I should be doing besides the call to umount? Is thi
s
perhaps do the fact that the remote fs was mounted by the automounter?

Thanks in advance,

Stuart





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:26 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register