]> git.ipfire.org Git - people/ms/linux.git/blame - fs/squashfs/super.c
Merge tag 'soc-fixes-6.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[people/ms/linux.git] / fs / squashfs / super.c
CommitLineData
68252eb5 1// SPDX-License-Identifier: GPL-2.0-or-later
0aa66619
PL
2/*
3 * Squashfs - a compressed read only filesystem for Linux
4 *
5 * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
d7f2ff67 6 * Phillip Lougher <phillip@squashfs.org.uk>
0aa66619 7 *
0aa66619
PL
8 * super.c
9 */
10
11/*
12 * This file implements code to read the superblock, read and initialise
13 * in-memory structures at mount time, and all the VFS glue code to register
14 * the filesystem.
15 */
16
c811f5f4
FF
17#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
18
be9a7b3e 19#include <linux/blkdev.h>
0aa66619 20#include <linux/fs.h>
5a2be128 21#include <linux/fs_context.h>
10dde05b 22#include <linux/fs_parser.h>
0aa66619
PL
23#include <linux/vfs.h>
24#include <linux/slab.h>
25#include <linux/mutex.h>
10dde05b 26#include <linux/seq_file.h>
0aa66619
PL
27#include <linux/pagemap.h>
28#include <linux/init.h>
29#include <linux/module.h>
1bcbf313 30#include <linux/magic.h>
4b5397dc 31#include <linux/xattr.h>
0aa66619
PL
32
33#include "squashfs_fs.h"
34#include "squashfs_fs_sb.h"
35#include "squashfs_fs_i.h"
36#include "squashfs.h"
4c0f0bb2 37#include "decompressor.h"
01e5b4e4 38#include "xattr.h"
0aa66619
PL
39
40static struct file_system_type squashfs_fs_type;
b87221de 41static const struct super_operations squashfs_super_ops;
0aa66619 42
10dde05b
VW
43enum Opt_errors {
44 Opt_errors_continue,
45 Opt_errors_panic,
46};
47
48enum squashfs_param {
49 Opt_errors,
50};
51
52struct squashfs_mount_opts {
53 enum Opt_errors errors;
54};
55
56static const struct constant_table squashfs_param_errors[] = {
57 {"continue", Opt_errors_continue },
58 {"panic", Opt_errors_panic },
59 {}
60};
61
62static const struct fs_parameter_spec squashfs_fs_parameters[] = {
63 fsparam_enum("errors", Opt_errors, squashfs_param_errors),
64 {}
65};
66
67static int squashfs_parse_param(struct fs_context *fc, struct fs_parameter *param)
68{
69 struct squashfs_mount_opts *opts = fc->fs_private;
70 struct fs_parse_result result;
71 int opt;
72
73 opt = fs_parse(fc, squashfs_fs_parameters, param, &result);
74 if (opt < 0)
75 return opt;
76
77 switch (opt) {
78 case Opt_errors:
79 opts->errors = result.uint_32;
80 break;
81 default:
82 return -EINVAL;
83 }
84
85 return 0;
86}
87
5a2be128
DH
88static const struct squashfs_decompressor *supported_squashfs_filesystem(
89 struct fs_context *fc,
90 short major, short minor, short id)
0aa66619 91{
4c0f0bb2
PL
92 const struct squashfs_decompressor *decompressor;
93
0aa66619 94 if (major < SQUASHFS_MAJOR) {
5a2be128
DH
95 errorf(fc, "Major/Minor mismatch, older Squashfs %d.%d "
96 "filesystems are unsupported", major, minor);
4c0f0bb2 97 return NULL;
0aa66619 98 } else if (major > SQUASHFS_MAJOR || minor > SQUASHFS_MINOR) {
5a2be128
DH
99 errorf(fc, "Major/Minor mismatch, trying to mount newer "
100 "%d.%d filesystem", major, minor);
101 errorf(fc, "Please update your kernel");
4c0f0bb2 102 return NULL;
0aa66619
PL
103 }
104
4c0f0bb2
PL
105 decompressor = squashfs_lookup_decompressor(id);
106 if (!decompressor->supported) {
5a2be128
DH
107 errorf(fc, "Filesystem uses \"%s\" compression. This is not supported",
108 decompressor->name);
4c0f0bb2
PL
109 return NULL;
110 }
0aa66619 111
4c0f0bb2 112 return decompressor;
0aa66619
PL
113}
114
115
5a2be128 116static int squashfs_fill_super(struct super_block *sb, struct fs_context *fc)
0aa66619 117{
10dde05b 118 struct squashfs_mount_opts *opts = fc->fs_private;
0aa66619
PL
119 struct squashfs_sb_info *msblk;
120 struct squashfs_super_block *sblk = NULL;
0aa66619
PL
121 struct inode *root;
122 long long root_inode;
123 unsigned short flags;
124 unsigned int fragments;
37986f63 125 u64 lookup_table_start, xattr_id_table_start, next_table;
0aa66619
PL
126 int err;
127
128 TRACE("Entered squashfs_fill_superblock\n");
129
130 sb->s_fs_info = kzalloc(sizeof(*msblk), GFP_KERNEL);
131 if (sb->s_fs_info == NULL) {
132 ERROR("Failed to allocate squashfs_sb_info\n");
133 return -ENOMEM;
134 }
135 msblk = sb->s_fs_info;
136
10dde05b
VW
137 msblk->panic_on_errors = (opts->errors == Opt_errors_panic);
138
7657cacf 139 msblk->devblksize = sb_min_blocksize(sb, SQUASHFS_DEVBLK_SIZE);
0aa66619
PL
140 msblk->devblksize_log2 = ffz(~msblk->devblksize);
141
0aa66619
PL
142 mutex_init(&msblk->meta_index_mutex);
143
144 /*
145 * msblk->bytes_used is checked in squashfs_read_table to ensure reads
146 * are not beyond filesystem end. But as we're using
147 * squashfs_read_table here to read the superblock (including the value
148 * of bytes_used) we need to set it to an initial sensible dummy value
149 */
150 msblk->bytes_used = sizeof(*sblk);
82de647e 151 sblk = squashfs_read_table(sb, SQUASHFS_START, sizeof(*sblk));
0aa66619 152
82de647e 153 if (IS_ERR(sblk)) {
5a2be128 154 errorf(fc, "unable to read squashfs_super_block");
82de647e
PL
155 err = PTR_ERR(sblk);
156 sblk = NULL;
0aa66619
PL
157 goto failed_mount;
158 }
159
4c0f0bb2
PL
160 err = -EINVAL;
161
0aa66619
PL
162 /* Check it is a SQUASHFS superblock */
163 sb->s_magic = le32_to_cpu(sblk->s_magic);
164 if (sb->s_magic != SQUASHFS_MAGIC) {
5a2be128
DH
165 if (!(fc->sb_flags & SB_SILENT))
166 errorf(fc, "Can't find a SQUASHFS superblock on %pg",
167 sb->s_bdev);
0aa66619
PL
168 goto failed_mount;
169 }
170
4c0f0bb2
PL
171 /* Check the MAJOR & MINOR versions and lookup compression type */
172 msblk->decompressor = supported_squashfs_filesystem(
5a2be128 173 fc,
4c0f0bb2 174 le16_to_cpu(sblk->s_major),
0aa66619
PL
175 le16_to_cpu(sblk->s_minor),
176 le16_to_cpu(sblk->compression));
4c0f0bb2 177 if (msblk->decompressor == NULL)
0aa66619
PL
178 goto failed_mount;
179
0aa66619
PL
180 /* Check the filesystem does not extend beyond the end of the
181 block device */
182 msblk->bytes_used = le64_to_cpu(sblk->bytes_used);
be9a7b3e
CH
183 if (msblk->bytes_used < 0 ||
184 msblk->bytes_used > bdev_nr_bytes(sb->s_bdev))
0aa66619
PL
185 goto failed_mount;
186
187 /* Check block size for sanity */
188 msblk->block_size = le32_to_cpu(sblk->block_size);
189 if (msblk->block_size > SQUASHFS_FILE_MAX_SIZE)
5a2be128 190 goto insanity;
0aa66619 191
fffb47b8
PL
192 /*
193 * Check the system page size is not larger than the filesystem
194 * block size (by default 128K). This is currently not supported.
195 */
09cbfeaf 196 if (PAGE_SIZE > msblk->block_size) {
5a2be128
DH
197 errorf(fc, "Page size > filesystem block size (%d). This is "
198 "currently not supported!", msblk->block_size);
fffb47b8
PL
199 goto failed_mount;
200 }
201
4b0180a4 202 /* Check block log for sanity */
0aa66619
PL
203 msblk->block_log = le16_to_cpu(sblk->block_log);
204 if (msblk->block_log > SQUASHFS_FILE_MAX_LOG)
205 goto failed_mount;
206
4b0180a4
PL
207 /* Check that block_size and block_log match */
208 if (msblk->block_size != (1 << msblk->block_log))
5a2be128 209 goto insanity;
4b0180a4 210
0aa66619
PL
211 /* Check the root inode for sanity */
212 root_inode = le64_to_cpu(sblk->root_inode);
213 if (SQUASHFS_INODE_OFFSET(root_inode) > SQUASHFS_METADATA_SIZE)
5a2be128 214 goto insanity;
0aa66619
PL
215
216 msblk->inode_table = le64_to_cpu(sblk->inode_table_start);
217 msblk->directory_table = le64_to_cpu(sblk->directory_table_start);
218 msblk->inodes = le32_to_cpu(sblk->inodes);
71755ee5 219 msblk->fragments = le32_to_cpu(sblk->fragments);
f37aa4c7 220 msblk->ids = le16_to_cpu(sblk->no_ids);
0aa66619
PL
221 flags = le16_to_cpu(sblk->flags);
222
a1c6f057 223 TRACE("Found valid superblock on %pg\n", sb->s_bdev);
0aa66619
PL
224 TRACE("Inodes are %scompressed\n", SQUASHFS_UNCOMPRESSED_INODES(flags)
225 ? "un" : "");
226 TRACE("Data is %scompressed\n", SQUASHFS_UNCOMPRESSED_DATA(flags)
227 ? "un" : "");
228 TRACE("Filesystem size %lld bytes\n", msblk->bytes_used);
229 TRACE("Block size %d\n", msblk->block_size);
230 TRACE("Number of inodes %d\n", msblk->inodes);
71755ee5 231 TRACE("Number of fragments %d\n", msblk->fragments);
f37aa4c7 232 TRACE("Number of ids %d\n", msblk->ids);
0aa66619
PL
233 TRACE("sblk->inode_table_start %llx\n", msblk->inode_table);
234 TRACE("sblk->directory_table_start %llx\n", msblk->directory_table);
235 TRACE("sblk->fragment_table_start %llx\n",
236 (u64) le64_to_cpu(sblk->fragment_table_start));
237 TRACE("sblk->id_table_start %llx\n",
238 (u64) le64_to_cpu(sblk->id_table_start));
239
240 sb->s_maxbytes = MAX_LFS_FILESIZE;
22b13969
DD
241 sb->s_time_min = 0;
242 sb->s_time_max = U32_MAX;
1751e8a6 243 sb->s_flags |= SB_RDONLY;
0aa66619
PL
244 sb->s_op = &squashfs_super_ops;
245
246 err = -ENOMEM;
247
248 msblk->block_cache = squashfs_cache_init("metadata",
249 SQUASHFS_CACHED_BLKS, SQUASHFS_METADATA_SIZE);
250 if (msblk->block_cache == NULL)
251 goto failed_mount;
252
253 /* Allocate read_page block */
9508c6b9
PL
254 msblk->read_page = squashfs_cache_init("data",
255 squashfs_max_decompressors(), msblk->block_size);
0aa66619 256 if (msblk->read_page == NULL) {
5a2be128 257 errorf(fc, "Failed to allocate read_page block");
0aa66619
PL
258 goto failed_mount;
259 }
260
9508c6b9 261 msblk->stream = squashfs_decompressor_setup(sb, flags);
b7fc0ff0
PL
262 if (IS_ERR(msblk->stream)) {
263 err = PTR_ERR(msblk->stream);
264 msblk->stream = NULL;
5a2be128 265 goto insanity;
b7fc0ff0
PL
266 }
267
76e002f7
PL
268 /* Handle xattrs */
269 sb->s_xattr = squashfs_xattr_handlers;
270 xattr_id_table_start = le64_to_cpu(sblk->xattr_id_table_start);
37986f63
PL
271 if (xattr_id_table_start == SQUASHFS_INVALID_BLK) {
272 next_table = msblk->bytes_used;
76e002f7 273 goto allocate_id_index_table;
37986f63 274 }
76e002f7
PL
275
276 /* Allocate and read xattr id lookup table */
277 msblk->xattr_id_table = squashfs_read_xattr_id_table(sb,
278 xattr_id_table_start, &msblk->xattr_table, &msblk->xattr_ids);
279 if (IS_ERR(msblk->xattr_id_table)) {
5a2be128 280 errorf(fc, "unable to read xattr id index table");
76e002f7
PL
281 err = PTR_ERR(msblk->xattr_id_table);
282 msblk->xattr_id_table = NULL;
283 if (err != -ENOTSUPP)
284 goto failed_mount;
285 }
37986f63 286 next_table = msblk->xattr_table;
76e002f7
PL
287
288allocate_id_index_table:
0aa66619
PL
289 /* Allocate and read id index table */
290 msblk->id_table = squashfs_read_id_index_table(sb,
f37aa4c7 291 le64_to_cpu(sblk->id_table_start), next_table, msblk->ids);
0aa66619 292 if (IS_ERR(msblk->id_table)) {
5a2be128 293 errorf(fc, "unable to read id index table");
0aa66619
PL
294 err = PTR_ERR(msblk->id_table);
295 msblk->id_table = NULL;
296 goto failed_mount;
297 }
d5b72ce1 298 next_table = le64_to_cpu(msblk->id_table[0]);
0aa66619 299
76e002f7
PL
300 /* Handle inode lookup table */
301 lookup_table_start = le64_to_cpu(sblk->lookup_table_start);
302 if (lookup_table_start == SQUASHFS_INVALID_BLK)
303 goto handle_fragments;
304
305 /* Allocate and read inode lookup table */
306 msblk->inode_lookup_table = squashfs_read_inode_lookup_table(sb,
ac51a0a7 307 lookup_table_start, next_table, msblk->inodes);
76e002f7 308 if (IS_ERR(msblk->inode_lookup_table)) {
5a2be128 309 errorf(fc, "unable to read inode lookup table");
76e002f7
PL
310 err = PTR_ERR(msblk->inode_lookup_table);
311 msblk->inode_lookup_table = NULL;
312 goto failed_mount;
313 }
d5b72ce1 314 next_table = le64_to_cpu(msblk->inode_lookup_table[0]);
76e002f7
PL
315
316 sb->s_export_op = &squashfs_export_ops;
317
318handle_fragments:
71755ee5 319 fragments = msblk->fragments;
0aa66619 320 if (fragments == 0)
1094a4a6 321 goto check_directory_table;
0aa66619
PL
322
323 msblk->fragment_cache = squashfs_cache_init("fragment",
324 SQUASHFS_CACHED_FRAGMENTS, msblk->block_size);
325 if (msblk->fragment_cache == NULL) {
326 err = -ENOMEM;
327 goto failed_mount;
328 }
329
330 /* Allocate and read fragment index table */
331 msblk->fragment_index = squashfs_read_fragment_index_table(sb,
1cac63cc 332 le64_to_cpu(sblk->fragment_table_start), next_table, fragments);
0aa66619 333 if (IS_ERR(msblk->fragment_index)) {
5a2be128 334 errorf(fc, "unable to read fragment index table");
0aa66619
PL
335 err = PTR_ERR(msblk->fragment_index);
336 msblk->fragment_index = NULL;
337 goto failed_mount;
338 }
d5b72ce1 339 next_table = le64_to_cpu(msblk->fragment_index[0]);
0aa66619 340
1094a4a6
PL
341check_directory_table:
342 /* Sanity check directory_table */
cc37f75a 343 if (msblk->directory_table > next_table) {
1094a4a6 344 err = -EINVAL;
5a2be128 345 goto insanity;
1094a4a6
PL
346 }
347
348 /* Sanity check inode_table */
349 if (msblk->inode_table >= msblk->directory_table) {
350 err = -EINVAL;
5a2be128 351 goto insanity;
1094a4a6
PL
352 }
353
354 /* allocate root */
0aa66619
PL
355 root = new_inode(sb);
356 if (!root) {
357 err = -ENOMEM;
358 goto failed_mount;
359 }
360
361 err = squashfs_read_inode(root, root_inode);
362 if (err) {
1cb08e97
PL
363 make_bad_inode(root);
364 iput(root);
0aa66619
PL
365 goto failed_mount;
366 }
367 insert_inode_hash(root);
368
48fde701 369 sb->s_root = d_make_root(root);
0aa66619
PL
370 if (sb->s_root == NULL) {
371 ERROR("Root inode create failed\n");
372 err = -ENOMEM;
0aa66619
PL
373 goto failed_mount;
374 }
375
376 TRACE("Leaving squashfs_fill_super\n");
377 kfree(sblk);
378 return 0;
379
5a2be128
DH
380insanity:
381 errorf(fc, "squashfs image failed sanity check");
0aa66619
PL
382failed_mount:
383 squashfs_cache_delete(msblk->block_cache);
384 squashfs_cache_delete(msblk->fragment_cache);
385 squashfs_cache_delete(msblk->read_page);
9508c6b9 386 squashfs_decompressor_destroy(msblk);
0aa66619
PL
387 kfree(msblk->inode_lookup_table);
388 kfree(msblk->fragment_index);
389 kfree(msblk->id_table);
4b5397dc 390 kfree(msblk->xattr_id_table);
0aa66619
PL
391 kfree(sb->s_fs_info);
392 sb->s_fs_info = NULL;
393 kfree(sblk);
394 return err;
0aa66619
PL
395}
396
5a2be128
DH
397static int squashfs_get_tree(struct fs_context *fc)
398{
399 return get_tree_bdev(fc, squashfs_fill_super);
400}
401
402static int squashfs_reconfigure(struct fs_context *fc)
403{
10dde05b
VW
404 struct super_block *sb = fc->root->d_sb;
405 struct squashfs_sb_info *msblk = sb->s_fs_info;
406 struct squashfs_mount_opts *opts = fc->fs_private;
407
5a2be128
DH
408 sync_filesystem(fc->root->d_sb);
409 fc->sb_flags |= SB_RDONLY;
10dde05b
VW
410
411 msblk->panic_on_errors = (opts->errors == Opt_errors_panic);
412
5a2be128
DH
413 return 0;
414}
415
10dde05b
VW
416static void squashfs_free_fs_context(struct fs_context *fc)
417{
418 kfree(fc->fs_private);
419}
420
5a2be128
DH
421static const struct fs_context_operations squashfs_context_ops = {
422 .get_tree = squashfs_get_tree,
10dde05b
VW
423 .free = squashfs_free_fs_context,
424 .parse_param = squashfs_parse_param,
5a2be128
DH
425 .reconfigure = squashfs_reconfigure,
426};
427
10dde05b
VW
428static int squashfs_show_options(struct seq_file *s, struct dentry *root)
429{
430 struct super_block *sb = root->d_sb;
431 struct squashfs_sb_info *msblk = sb->s_fs_info;
432
433 if (msblk->panic_on_errors)
434 seq_puts(s, ",errors=panic");
435 else
436 seq_puts(s, ",errors=continue");
437
438 return 0;
439}
440
5a2be128
DH
441static int squashfs_init_fs_context(struct fs_context *fc)
442{
10dde05b
VW
443 struct squashfs_mount_opts *opts;
444
445 opts = kzalloc(sizeof(*opts), GFP_KERNEL);
446 if (!opts)
447 return -ENOMEM;
448
449 fc->fs_private = opts;
5a2be128
DH
450 fc->ops = &squashfs_context_ops;
451 return 0;
452}
0aa66619
PL
453
454static int squashfs_statfs(struct dentry *dentry, struct kstatfs *buf)
455{
456 struct squashfs_sb_info *msblk = dentry->d_sb->s_fs_info;
2fc7f562 457 u64 id = huge_encode_dev(dentry->d_sb->s_bdev->bd_dev);
0aa66619
PL
458
459 TRACE("Entered squashfs_statfs\n");
460
461 buf->f_type = SQUASHFS_MAGIC;
462 buf->f_bsize = msblk->block_size;
463 buf->f_blocks = ((msblk->bytes_used - 1) >> msblk->block_log) + 1;
464 buf->f_bfree = buf->f_bavail = 0;
465 buf->f_files = msblk->inodes;
466 buf->f_ffree = 0;
467 buf->f_namelen = SQUASHFS_NAME_LEN;
6d1349c7 468 buf->f_fsid = u64_to_fsid(id);
0aa66619
PL
469
470 return 0;
471}
472
473
0aa66619
PL
474static void squashfs_put_super(struct super_block *sb)
475{
476 if (sb->s_fs_info) {
477 struct squashfs_sb_info *sbi = sb->s_fs_info;
478 squashfs_cache_delete(sbi->block_cache);
479 squashfs_cache_delete(sbi->fragment_cache);
480 squashfs_cache_delete(sbi->read_page);
9508c6b9 481 squashfs_decompressor_destroy(sbi);
0aa66619
PL
482 kfree(sbi->id_table);
483 kfree(sbi->fragment_index);
484 kfree(sbi->meta_index);
370ec3d1 485 kfree(sbi->inode_lookup_table);
4b5397dc 486 kfree(sbi->xattr_id_table);
0aa66619
PL
487 kfree(sb->s_fs_info);
488 sb->s_fs_info = NULL;
489 }
490}
491
0aa66619
PL
492static struct kmem_cache *squashfs_inode_cachep;
493
494
495static void init_once(void *foo)
496{
497 struct squashfs_inode_info *ei = foo;
498
499 inode_init_once(&ei->vfs_inode);
500}
501
502
503static int __init init_inodecache(void)
504{
505 squashfs_inode_cachep = kmem_cache_create("squashfs_inode_cache",
506 sizeof(struct squashfs_inode_info), 0,
5d097056
VD
507 SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT|SLAB_ACCOUNT,
508 init_once);
0aa66619
PL
509
510 return squashfs_inode_cachep ? 0 : -ENOMEM;
511}
512
513
514static void destroy_inodecache(void)
515{
8c0a8537
KS
516 /*
517 * Make sure all delayed rcu free inodes are flushed before we
518 * destroy cache.
519 */
520 rcu_barrier();
0aa66619
PL
521 kmem_cache_destroy(squashfs_inode_cachep);
522}
523
524
525static int __init init_squashfs_fs(void)
526{
527 int err = init_inodecache();
528
529 if (err)
530 return err;
531
532 err = register_filesystem(&squashfs_fs_type);
533 if (err) {
534 destroy_inodecache();
535 return err;
536 }
537
c811f5f4 538 pr_info("version 4.0 (2009/01/31) Phillip Lougher\n");
0aa66619
PL
539
540 return 0;
541}
542
543
544static void __exit exit_squashfs_fs(void)
545{
546 unregister_filesystem(&squashfs_fs_type);
547 destroy_inodecache();
548}
549
550
551static struct inode *squashfs_alloc_inode(struct super_block *sb)
552{
553 struct squashfs_inode_info *ei =
fd60b288 554 alloc_inode_sb(sb, squashfs_inode_cachep, GFP_KERNEL);
0aa66619
PL
555
556 return ei ? &ei->vfs_inode : NULL;
557}
558
559
56b5af19 560static void squashfs_free_inode(struct inode *inode)
0aa66619
PL
561{
562 kmem_cache_free(squashfs_inode_cachep, squashfs_i(inode));
563}
564
0aa66619
PL
565static struct file_system_type squashfs_fs_type = {
566 .owner = THIS_MODULE,
567 .name = "squashfs",
5a2be128 568 .init_fs_context = squashfs_init_fs_context,
10dde05b 569 .parameters = squashfs_fs_parameters,
0aa66619
PL
570 .kill_sb = kill_block_super,
571 .fs_flags = FS_REQUIRES_DEV
572};
3e64fe5b 573MODULE_ALIAS_FS("squashfs");
0aa66619 574
b87221de 575static const struct super_operations squashfs_super_ops = {
0aa66619 576 .alloc_inode = squashfs_alloc_inode,
56b5af19 577 .free_inode = squashfs_free_inode,
0aa66619
PL
578 .statfs = squashfs_statfs,
579 .put_super = squashfs_put_super,
10dde05b 580 .show_options = squashfs_show_options,
0aa66619
PL
581};
582
583module_init(init_squashfs_fs);
584module_exit(exit_squashfs_fs);
585MODULE_DESCRIPTION("squashfs 4.0, a compressed read-only filesystem");
d7f2ff67 586MODULE_AUTHOR("Phillip Lougher <phillip@squashfs.org.uk>");
0aa66619 587MODULE_LICENSE("GPL");