| I have an executable with size is 1 Mega in the directory /bin of a | ramdisk image. | If I make a hard link to the executable in directory /bin2 with the du | command I see that the directory /bin2 is 1 Mega (with only a file). | I don't understand the size of the directory /bin2, could anyone help | me?
If this is in the same ramdisk filesystem, the hardlink means there is just the one inode and just one tree of pages for the file. But two different directories reference the same inode. Once a hardlink is made, there is no distinction between them in any way; one of them can be just as much master as the other. Try removing the first name, and the second one will remain, as will the file. If you can just /bin2 with "du" it will show as having as much space as that file takes, even though /bin would as well. Scan both together and it may not, depending on which version of "du" you have. See the -l option for recent versions of "du".
--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2007-04-10-1721@ipal.net |
|------------------------------------/-------------------------------------|