FILE_ATTRIBUTE_TEMPORARY

pofis at portugalmail.pt pofis at portugalmail.pt
Sun Feb 8 11:47:00 CST 2004


Hi


i was trying to run an aplicattion and it showed and FIXME because of non
implementation of FILE_ATTRIBUTE_TEMPORARY, so i investigated it.

here's what i found:
----------------------------------------------
FILE_ATTRIBUTE_TEMPORARY = &H100     ' The file is being used for temporary
storage. File systems
attempt to keep all of the data in memory for quicker access, rather than
flushing it back to mass
storage. A temporary file should be deleted by the application as soon as it is
no longer needed.
		...
FILE_ATTRIBUTE_TEMPORARY   The file is being used for temporary storage.
Applications should write
to the file only if absolutely necessary. Most of the file's data remains in
memory without being
flushed to the media because the file will soon be deleted.
...
The file is being used for temporary storage. File systems avoid writing data
back to mass storage 
if sufficient cache memory is available, because often the application deletes
the temporary file 
shortly after the handle is closed. In that case, the system can entirely avoid
writing the data.
Otherwise, the data will be written after the handle is closed.
...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngenlib/html/msdn_manamemo.asp
----------------------------------------------

i don't think it is much important so this simple patch to wine.src/files/file.c 
in attachement should be enought.

Tell me what you think.

Pofis


__________________________________________________________
Porque insiste em pagar o dobro? Adira à ligação Portugalmail.
http://acesso.portugalmail.pt/maisbarato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 644 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040208/0aa96785/patch.obj


More information about the wine-patches mailing list