On Sun, 11 Apr 1999, Gevaerts Frank wrote:
->On Sat, 10 Apr 1999, Michael B. Trausch wrote:
->
->> I'm wondering something here... I was playing an MP3 file the other day,
->> and I didn't like it... so I deleted it. I was amazed, because the MP3
->> play played the file clear until the end. Why? I deleted the file before
->> 20 seconds was up (it was about a 4 minute songfile)... I know that it
->> doesn't cache up that far ahead. Why did it still play? Is it supposed
->> to do this?
->
->This is normal. A file doesn't get deleted until it has been closed by all
->its users.
->
->> - Mike
->
->Frank
I once heared from a sysadm that it would let you remove the remove command.
rm -rf /bin/rm
He also said he that he was upgrading his hard drivers and distruabtion on a
sun system and decided to do a rm -rf / as root and everything ran fine for
about 10 minutes, after that he said programs started to look/try to load files
from disk which where not there. He said after that all hell broke lose and
had to flip the switch on his box.
I've never tried it personally, when I decide to put a recent dis on this
system though that is the way i'll do it.
Also there is a command called sync which flushes the file buffer to disk, in
the man page is says it only flushes the 'dirty' blocks to disk, and takes a
few more seconds to write the clean blocks.
I'm not really sure what the differance is between dirty and clean, but my
understand is that it takes all file that are in memory and forces them to be
writen to disk.