SquashFS: Difference between revisions
mNo edit summary Tags: Visual edit Mobile edit Mobile web edit |
Nathan2055 (talk | contribs) |
||
Line 37: | Line 37: | ||
Squashfs was initially maintained as an out-of-tree Linux patch. The initial version 1.0 was released on 23 October 2002.<ref>{{cite web|title=Squashfs CHANGES file|url=https://sourceforge.net/p/squashfs/code/ci/master/tree/CHANGES|access-date=19 April 2017|date=2014-08-08}}</ref> In 2009 Squashfs was merged into Linux mainline as part of Linux 2.6.29.<ref>{{cite web|title=Linux 2 6 29 -- Linux Kernel Newbies|url=https://kernelnewbies.org/Linux_2_6_29|website=Linux Kernel Newbies|access-date=19 April 2017|date=2009-06-10}}</ref><ref>{{cite web|url=http://www.h-online.com/open/news/item/Btrfs-and-Squashfs-merged-into-Linux-kernel-739613.html|title=Btrfs and Squashfs merged into Linux kernel - The H Open: News and Features |website=The H Open|date=2009-01-10 |access-date=2017-04-19}}</ref> In that process, the backward-compatibility code for older formats was removed. Since then the Squashfs [[kernel space]] code has been maintained in the Linux mainline tree, while the [[user space]] tools remain on the project's Sourceforge page.<ref>{{cite web|title=Squashfs README file|url=https://sourceforge.net/p/squashfs/code/ci/master/tree/README|access-date=19 April 2017|date=2014-05-05}}</ref> |
Squashfs was initially maintained as an out-of-tree Linux patch. The initial version 1.0 was released on 23 October 2002.<ref>{{cite web|title=Squashfs CHANGES file|url=https://sourceforge.net/p/squashfs/code/ci/master/tree/CHANGES|access-date=19 April 2017|date=2014-08-08}}</ref> In 2009 Squashfs was merged into Linux mainline as part of Linux 2.6.29.<ref>{{cite web|title=Linux 2 6 29 -- Linux Kernel Newbies|url=https://kernelnewbies.org/Linux_2_6_29|website=Linux Kernel Newbies|access-date=19 April 2017|date=2009-06-10}}</ref><ref>{{cite web|url=http://www.h-online.com/open/news/item/Btrfs-and-Squashfs-merged-into-Linux-kernel-739613.html|title=Btrfs and Squashfs merged into Linux kernel - The H Open: News and Features |website=The H Open|date=2009-01-10 |access-date=2017-04-19}}</ref> In that process, the backward-compatibility code for older formats was removed. Since then the Squashfs [[kernel space]] code has been maintained in the Linux mainline tree, while the [[user space]] tools remain on the project's Sourceforge page.<ref>{{cite web|title=Squashfs README file|url=https://sourceforge.net/p/squashfs/code/ci/master/tree/README|access-date=19 April 2017|date=2014-05-05}}</ref> |
||
The original version of Squashfs used [[gzip]] compression, although Linux kernel 2.6.34 added support for [[LZMA]]<ref>{{cite web|url=http://www.squashfs-lzma.org/ |title=Official Squashfs LZMA |website=Squashfs-LZMA.org |access-date=2012-11-08}}</ref> and [[Lempel–Ziv–Oberhumer|LZO]] compression,<ref>{{cite web|url=http://kernelnewbies.org/Linux_2_6_34#head-35808ff36eeaca6084c79975a7d50263b726acc1 |title=Linux 2 6 34 - Linux Kernel Newbies |website=KernelNewbies.org |access-date=2012-11-08}}</ref> Linux kernel 2.6.38 added support for [[LZMA2]] compression (which is used by [[XZ Utils|xz]]),<ref>{{cite web|url=http://kernelnewbies.org/Linux_2_6_38#head-1ca50229f5801418cffa063f800aae8b466f1c60 |title=Linux 2 6 38 - Linux Kernel Newbies |website=KernelNewbies.org |access-date=2012-11-08}}</ref> |
The original version of Squashfs used [[gzip]] compression, although Linux kernel 2.6.34 added support for [[LZMA]]<ref>{{cite web|url=http://www.squashfs-lzma.org/ |title=Official Squashfs LZMA |website=Squashfs-LZMA.org |access-date=2012-11-08}}</ref> and [[Lempel–Ziv–Oberhumer|LZO]] compression,<ref>{{cite web|url=http://kernelnewbies.org/Linux_2_6_34#head-35808ff36eeaca6084c79975a7d50263b726acc1 |title=Linux 2 6 34 - Linux Kernel Newbies |website=KernelNewbies.org |access-date=2012-11-08}}</ref> Linux kernel 2.6.38 added support for [[LZMA2]] compression (which is used by [[XZ Utils|xz]]),<ref>{{cite web|url=http://kernelnewbies.org/Linux_2_6_38#head-1ca50229f5801418cffa063f800aae8b466f1c60 |title=Linux 2 6 38 - Linux Kernel Newbies |website=KernelNewbies.org |access-date=2012-11-08}}</ref> Linux kernel 3.19 added support for [[LZ4 (compression algorithm)|LZ4]] compression,<ref>[https://github.com/torvalds/linux/commit/7a02d089695a1217992434f03a78aa32bad85b5c Merge of LZ4 Squashfs support] to [[Linus Torvalds]] tree.</ref> and Linux kernel 4.14 added support for [[Zstandard]] compression.<ref>{{Cite web|url=https://github.com/torvalds/linux/commit/87bf54bb43ddd385d2538b777324bf737f243042|title=squashfs: Add zstd support · torvalds/linux@87bf54b|website=GitHub|language=en|access-date=2018-04-15}}</ref> |
||
Linux kernel 2.6.35 added support for [[extended file attributes]].<ref>{{cite web|url=http://kernelnewbies.org/Linux_2_6_35#head-7b60ef60876830625c37e8f1c24e460eebc418cc |title=Linux 2 6 35 - Linux Kernel Newbies |website=KernelNewbies.org |access-date=2012-11-08}}</ref> |
Linux kernel 2.6.35 added support for [[extended file attributes]].<ref>{{cite web|url=http://kernelnewbies.org/Linux_2_6_35#head-7b60ef60876830625c37e8f1c24e460eebc418cc |title=Linux 2 6 35 - Linux Kernel Newbies |website=KernelNewbies.org |access-date=2012-11-08}}</ref> |
Revision as of 23:17, 7 March 2021
Developer(s) | Phillip Lougher, Robert Lougher |
---|---|
Introduced | 2002 with Linux |
Limits | |
Max volume size | 16 EiB (264) bytes |
Max file size | 16 EiB (264) bytes |
Features | |
Attributes | POSIX and extended attributes |
Transparent compression | gzip LZMA LZO LZMA2 LZ4 Zstd |
Other | |
Supported operating systems | Linux |
Website | github |
Squashfs is a compressed read-only file system for Linux. Squashfs compresses files, inodes and directories, and supports block sizes from 4 KiB up to 1 MiB for greater compression. Several compression algorithms are supported. Squashfs is also the name of free software, licensed under the GPL, for accessing Squashfs filesystems.
Squashfs is intended for general read-only file-system use and in constrained block-device memory systems (e.g. embedded systems) where low overhead is needed.
Uses
Squashfs is used by the Live CD versions of Arch Linux, Debian, Fedora, Gentoo Linux, HoleOS, Linux Mint, Salix, Ubuntu, Clonezilla and on embedded distributions such as the OpenWrt[1] and DD-WRT router firmware. It is also used in Chromecast[2] and for the system partitions of some Android releases (Android Nougat).[3] It is often combined with a union mount filesystem, such as UnionFS, OverlayFS, or aufs, to provide a read-write environment for live Linux distributions. This takes advantage of both Squashfs's high-speed compression abilities and the ability to alter the distribution while running it from a live CD. Distributions such as Debian Live, Mandriva One, Puppy Linux, Salix Live and Slax use this combination. The AppImage project, which aims to create portable linux applications, uses squashfs for creating appimages. The Snappy package manager also uses squashfs for its ".snap file format".
Squashfs is also used by Linux Terminal Server Project and Splashtop. The tools unsquashfs and mksquashfs have been ported to Windows NT[4] – Windows 8.1.[5] 7-Zip also supports Squashfs.[6]
History
Squashfs was initially maintained as an out-of-tree Linux patch. The initial version 1.0 was released on 23 October 2002.[7] In 2009 Squashfs was merged into Linux mainline as part of Linux 2.6.29.[8][9] In that process, the backward-compatibility code for older formats was removed. Since then the Squashfs kernel space code has been maintained in the Linux mainline tree, while the user space tools remain on the project's Sourceforge page.[10]
The original version of Squashfs used gzip compression, although Linux kernel 2.6.34 added support for LZMA[11] and LZO compression,[12] Linux kernel 2.6.38 added support for LZMA2 compression (which is used by xz),[13] Linux kernel 3.19 added support for LZ4 compression,[14] and Linux kernel 4.14 added support for Zstandard compression.[15]
Linux kernel 2.6.35 added support for extended file attributes.[16]
See also
References
- ^ "The OpenWrt Flash Layout – OpenWrt Wiki". OpenWrt.org. 2018-06-07. Retrieved 2018-06-11.
- ^ http://blog.gtvhacker.com/2013/chromecast-exploiting-the-newest-device-by-google/
- ^ https://arstechnica.com/gadgets/2016/05/android-n-borrows-chrome-os-code-for-seamless-update-installation/
- ^ "Squashfs tools for Windows". Retrieved 2017-09-22.
- ^ "Squashfs Tools (Linux/Windows)" (in Dutch). Retrieved 2017-09-22.
- ^ http://www.7-zip.org/
- ^ "Squashfs CHANGES file". 2014-08-08. Retrieved 19 April 2017.
- ^ "Linux 2 6 29 -- Linux Kernel Newbies". Linux Kernel Newbies. 2009-06-10. Retrieved 19 April 2017.
- ^ "Btrfs and Squashfs merged into Linux kernel - The H Open: News and Features". The H Open. 2009-01-10. Retrieved 2017-04-19.
- ^ "Squashfs README file". 2014-05-05. Retrieved 19 April 2017.
- ^ "Official Squashfs LZMA". Squashfs-LZMA.org. Retrieved 2012-11-08.
- ^ "Linux 2 6 34 - Linux Kernel Newbies". KernelNewbies.org. Retrieved 2012-11-08.
- ^ "Linux 2 6 38 - Linux Kernel Newbies". KernelNewbies.org. Retrieved 2012-11-08.
- ^ Merge of LZ4 Squashfs support to Linus Torvalds tree.
- ^ "squashfs: Add zstd support · torvalds/linux@87bf54b". GitHub. Retrieved 2018-04-15.
- ^ "Linux 2 6 35 - Linux Kernel Newbies". KernelNewbies.org. Retrieved 2012-11-08.