Unix Programming - Re: When does the Solaris kernel flush data to a file descriptor that is close()'ed?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2005 > Re: When does the Solaris kernel flush data to a file descriptor that is close()'ed?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: When does the Solaris kernel flush data to a file descriptor that is close()'ed?
Gary Mills

2005-01-14, 5:52 pm

In <41e78a47$0$6216$e4fe514c@news.xs4all.nl> Casper H.S. Dik <Casper.Dik@Sun.COM> writes:

>Matty <matty@daemons.net> writes:


[vbcol=seagreen]
[vbcol=seagreen]
>It's a property of the filesystem; as far as I know, Solaris ufs
>decides that on last close the data should be flushed so ti will be
>written somewhere in the near future.


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.

--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com