Re: disk space blackhole?
On Sun, 2002-01-27 at 18:38, Dimitri Maziuk wrote:
> Nitpick: hardlinks are additional inodes pointing to the same file.
Picking the same nit: hardlinks are directory entries that point to the
same inode. Example:
$ touch foo
$ touch bar
$ ls -li
144958 -rw-r--r-- 1 randy randy 0 Jan 27 20:10 bar
144957 -rw-r--r-- 1 randy randy 0 Jan 27 20:09 foo
Two files, two different inodes (the number in the first column is the
inode number), each with one link to the inode (the number in the column
after the permissions).
$ ln foo foo2
$ ls -li
144958 -rw-r--r-- 1 randy randy 0 Jan 27 20:10 bar
144957 -rw-r--r-- 2 randy randy 0 Jan 27 20:09 foo
144957 -rw-r--r-- 2 randy randy 0 Jan 27 20:09 foo2
Note that foo and foo2 have the same inode number, but now the link
count for the inode is 2.
Randy
Reply to: