Re: When does the Solaris kernel flush data to a file descriptor
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 > Re: When does the Solaris kernel flush data to a file descriptor




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

    Re: When does the Solaris kernel flush data to a file descriptor  
Dragan Cvetkovic


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


 
01-14-05 10:52 PM

mills@cc.umanitoba.ca (Gary Mills) writes:

> In <41e78a47$0$6216$e4fe514c@news.xs4all.nl> Casper H.S. Dik <Casper.Dik@S
un.COM> writes:
> 
> 
> 
> 
>
> I'm wondering if the original question was really about how soon
> another process could read back the data from the file.  In that
> case, it should be available immediately after the close() returns,
> even though it only resides in memory at the time.  I'm assuming
> that UFS guarantees this behavior.
>

To quote write(2) man page on Solaris

After a write() to a regular file has successfully returned:

o  Any successful read(2) from each byte position  in  the
file  that  was  modified by that write will return the
data specified by the write() for that  position  until
such byte positions are again modified.

o  Any subsequent successful  write()  to  the  same  byte
position in the file will overwrite that file data.

The OP's questions could also be interpreted in the sense of "if I switch
off my hard disk (or my machine) at that point, what would happen to the
data?".

Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:42 PM.      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