LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Matthew Tippett <mtippett@ticons.com.au>
To : Daryl Tester <dt@picknowl.com.au>
Date: Fri, 28 Apr 2000 08:42:56 +0930 (CST)
Re: Protecting files against power failure
> [1] The file is no longer accessible from the Unix file namespace,
> but as David's demo so eloquently shows, if you still have an
> open file descriptor to the file you can access its contents.
> Once the number of links drops to zero (ie, the last descriptor
> to the deleted file has been closed), the file space is reclaimed.
> This is the magic of decoupling the name of the file from its inode,
> and gives us other joyous oddities like hard links. One day, NTFS
> may catch up, but don't hold your breath.
Of course, this is why if you have a huge log file, and delete it without
restarting the writing process, the disk space is allocated for slightly
longer than one would expect. Some reboot to reclaim the space, others just
restart the server :).
It is also the reason for the .nfsxxxx files when using NFS based networks.
Regards,
Matthew
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page