glug: "/tmp"

s.sartini s.sartini@linux.it
Dom 23 Gen 2005 01:18:22 CET


LucaDiamanti wrote:
> Daccordo, E' mal scritto ma ad esempio gimp 2.x fa' cosi' ( verificato ).
> ( certo si puo' sempre spostare da qualche altra parte ).
> /tmp/" identificativo utente "/.gimp-2.0/tmp è il default.
> Ciao. LD

No, forse mi sono spiegato io male.
Nessun software *dovrebbe* fare affidamento sulla consistenza tra un 
reboot e l'altro (ed addirittura tra un giorno e l'altro) di quel che 
contiene la /tmp, perchè tale dir è (come suggerisce il nome) "temporanea".
Evidentemente tra un reboot e l'altro Gimp fa tranquillamente in tempo a 
ricrearsi la directory /tmp/" identificativo utente "/.gimp-2.0/tmp, 
esattamente come (esempio a caso) una cache del PHP. Sono assolutamente 
certo che Gimp non usa '/tmp/" identificativo utente "/.gimp-2.0/tmp' 
come directory dei salvataggi dei files dell'utente, salvo che i 
programmatori di Gimp stesso non siano dei discreti sadici :)

questo puo' chiarire il concetto (si parla di Unix, ovviamente):
"
/tmp

The /tmp directory is local to the specific machine you are using and 
has been set aside to serve a special purpose. This directory has been 
set up for temporary storage of files that are too large for your own 
directory. Files placed in this directory should be considered temporary 
as this directory is automatically erased every night, as well as every 
time the machine is turned on and off or rebooted. It is also important 
to note that files in this directory are not backed up, so if 
accidentally erased, they are gone forever
"
( http://www.albany.edu/its/quickstarts/qs-dirunix.html )

O, specifico su linux:
"
/tmp
This is a mandatory directory. This directory is used by programs to 
store temporary files. Files which are located here are often flushed on 
reboot or flushed periodically.
"

( http://www.dynamic-apps.com/linux_directories.jsp )

Non credo che chi ha programmato Gimp preveda che tutto il lavoro di un 
utente venga distrutto ad ogni reboot ;)

Stefano.


Maggiori informazioni sulla lista glug