On 3 Mar 99, at 23:19, Javilk wrote:
> If a file is still open, it is not deleted till the last application
> using it has closed it. If you rename the file, it will continue writing
> to the renamed file.
>
> This make sense, as the system is pointing to a start address and
> getting allocation blocks. There is no reason it should continue looking
> up (meaning re-opening) a file by name each time it wants to write to it.
> File names are a human construct. Disk addresses are what programs use.
This just sparked an "oh" response.
If I understand correctly, the web server opens the file but uses the
disk address of the file to know where to write the log info. This
disk address is in the inode. If I delete that file and then re-
create it then I am creating a new inode for this "new" file. I have
not deleted the old inode ... or did I? If I did not then that means
that the data must be written on the disk but to a space which is
identified only by the "disk addresses" which leads me to believe
that I could recover the data.
Ummm .... I think you would say that an inode is not deleted until
the last application that was using it had closed. Why would the
webserver not lock the file? It should prevent someone from changing
the file while it was still using it.
Ummm.... restarting the web server must cause the creation of a new
inode which describes the "human" file name.
But what can you do to this log file that would cause the creation of
a new inode to describe the file? I am certain that the person who
caused this did not delete the log file. They simply did something
that caused the webserver to stop writing to the log file. Restarting
the webserver of coursed solved everything.
Thanks Matthew and Javilk.
Peter
Might is not Right. But there is a lot of Might knocking
about in this world, and something has to be done about it.
-- King Arthur, The Once and Future King
____________________________________________________________________
--------------------------------------------------------------------
Join The NEW Web Consultants Association FORUMS and CHAT:
Register Today at: http://just4u.com/forums/
Web Consultants Web Site : http://just4u.com/webconsultants
Give the Gift of Life This Year...
Just4U Stop Smoking Support forum - helping smokers for
over three years-tell a friend: http://just4u.com/forums/
To get 500 Banner Ads for FREE
go to http://www.linkbuddies.com/start.go?id=111261
---------------------------------------------------------------------