plougher / squashfs-tools

tools to create and extract Squashfs filesystems
GNU General Public License v2.0
758 stars 193 forks source link

What are the commonly accepted file name extension for squashfs? #259

Closed astrophys closed 1 year ago

astrophys commented 1 year ago

Hello,

I use mksquashfs on RHEL8.6 to archive large directories.

Question :

  1. What are the commonly accepted squashfs extensions? E.g. somefile.squashfs?
plougher commented 1 year ago

I have never mandated a specific Squashfs image extension because some systems have 3 character limitations and others do not.

Personally I have always used .sqsh (see footnote), e.g. image.sqsh. I have also seen .sqfs, e.g. image.sqfs which I think is also a good extension. If limited to 3 characters I have seen .sfs. e.g. image.sfs.

Footnote: The Squashfs filesystem magic number is the ASCII characters SQSH in little endian format (i.e. stored as HSQS).

aonez commented 1 year ago

@plougher what will be a good UTI for this format? Maybe com.plougher.squashfs-archive?

For example ZIP has com.pkware.zip-archive and public.zip-archive.

plougher commented 1 year ago

@plougher what will be a good UTI for this format? Maybe com.plougher.squashfs-archive?

Looks a good suggestion to me.

For example ZIP has com.pkware.zip-archive and public.zip-archive.