lists.zerezo.com



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

***BOGO*** Res: Konqueror to inform about hard links?



>Well, a hardlink is a real inode entry

wrong, a hardlink is another entry on the fs pointing
to the Same inode. check with df -i to see that the
available inodes remains the same.

>Also, fwiw it is very difficult to find the other links of a hardlink

the only way to find another hardlink is comparing
each inode
The column after the perms are how many hard links that file has

498847 -rw-r--r-- 3 daniel daniel 6 2008-08-28 19:29 third

Daniel.

----- Mensagem original ----
De: Matthew Woehlke <mw_triad@xxxxxxxxxxxxxxxxxxxxx>
Para: kde-devel@xxxxxxx
Enviadas: Quinta-feira, 28 de Agosto de 2008 19:21:24
Assunto: Re: Konqueror to inform about hard links?

macintoshzoom wrote:
> I confused (konqueror lied me) soft and hard linked files, (which I
> ignored the existence till today, nor I understand yet why those hard
> links are useful).

Well, a hardlink is a real inode entry, not a symlink, so things that
look for symlinks will see it as a regular file. Also, fwiw it is very
difficult to find the other links of a hardlink (well, it is also hard
to find what symlinks may exist to any particular target as well, but of
course the other way is easy).

> # cd /usr/ports/packages/i386/cdrom
> # ls -i kde-i18n-nl-3.5.9.tgz
> 890218 kde-i18n-nl-3.5.9.tgz
> # cd /usr/ports/packages/i386/all
> # ls -i kde-i18n-nl-3.5.9.tgz
> 890218 kde-i18n-nl-3.5.9.tgz
> #
>
> As both have the same inode # 890218, so they are the same file, not
> twice space used on my hard drive.
>
> Which one is the good real one? Don't know yet

Neither. Unlike symlinks, all hardlinks are equal.

--
Matthew
Anyone who is capable of getting themselves made President should on no
account be allowed to do the job. -- Douglas Adams


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<