BAO RuiXian wrote:


Ryan A wrote:

[snip...]
the source and target files are on the same filesystem.

My (simple) question is:
What is "hard links"? never really heard of it and googles no help either.
Am I missing something?


A link is called hard link when its system-file-identifier (SFID) is added to the current directory entry. The opposite is called soft link or symbolic link, when only the path name is added to the direcotry entry.


You can think of hard links as of reference variables in php:


$a = 5;
$b =& $a;

$b would be a "hard link" to $a. In fact they are completely equal, they are both references to the same memory location, if you unset $a, $b is still valid. The same goes with filesystem hardlinks - you can remove the original file (in fact you only "unlink" it) and the other hardlink is still valid.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to