Hard links

Paul Gear paul at libertysys.com.au
Thu Feb 12 07:06:56 GMT 2009


David Ryder wrote:
> ...
>> The underlying reason is that a softlink is a 'reference in a
>> directory' to another 'directory entry'. When you delete a file or
>> directory, the filesystem has no 'local' record of who else may be
>> pointing to (referencing it). So, it stops there, rather than scanning
>> the entire filesystem when you delete each file to look for possible
>> floating softlinks.
> Much like Microsoft then. I thought a table was kept in linux.
> 
> Is there a way to list broken symlinks?
> 
> Thanks for explaining it to me, I very much appreciate your help.

Another issue is that symlinks can be on separate file systems from what
they link to, whereas hard links cannot.  So even if there was a table
of back links on disk, it would only work within the same file system.

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paul.vcf
Type: text/x-vcard
Size: 203 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-au/attachments/20090212/dc51bcce/attachment.vcf 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4646 bytes
Desc: S/MIME Cryptographic Signature
Url : https://lists.ubuntu.com/archives/ubuntu-au/attachments/20090212/dc51bcce/attachment.bin 


More information about the ubuntu-au mailing list