#10 Proper support for hard links


I recognised that squashfs is not really supporting
hard links.
Of course all other hard links of a file will be
detected as a duplicate of the first and so the file is
just saved once.

But this duplicates are saves as seperate files with a
own inode.
This has two main disadvantages:
1) Time: If you have many hard links to big files it
needs a lot of time to scan all. I don't think
mksquashfs is looking yet to the original inodes to
detect hard links more easily and faster.
This should be changed/added.
2) Restoration: If you make a backup with mksquashfs
you would like to be able to restore the exact original
state (i.e. if you copy the files from the mounted
squashfs to the original place). The current squashfs
will brake all hard links into single files. This can
be very bad. You can run out of disk space while a
backup. etc.
So, mksquashfs should store hard links as hard links
(if all hard links are supposed to get saved into the



  • Phillip Lougher

    Phillip Lougher - 2005-11-18
    • status: open --> closed
  • Phillip Lougher

    Phillip Lougher - 2005-11-18

    Logged In: YES

    Support for hard links is going to be in Squashfs 3.0 A pre-release of this is
    now available in CVS. The first 'proper' release will be made soon.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks