#10 Proper support for hard links

closed
nobody
None
5
2005-11-18
2005-09-19
Martin Scharrer
No

Hi,
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
squashfs).

Thanks
Martin

Discussion

    • status: open --> closed
     
  • Logged In: YES
    user_id=621656

    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.