Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185846
b: refs/heads/master
c: dc32567
h: refs/heads/master
v: v3
  • Loading branch information
Phillip Lougher committed Jan 20, 2010
1 parent 0caa527 commit 456d98e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c0f0bb2351bee3de8dd7715ee199454a59f1230
refs/heads/master: dc3256782f88602953676c447b243dedb1be99ad
10 changes: 10 additions & 0 deletions trunk/fs/squashfs/decompressor.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,22 @@
* Squashfs, allowing multiple decompressors to be easily supported
*/

static const struct squashfs_decompressor squashfs_lzma_unsupported_comp_ops = {
NULL, NULL, NULL, LZMA_COMPRESSION, "lzma", 0
};

static const struct squashfs_decompressor squashfs_lzo_unsupported_comp_ops = {
NULL, NULL, NULL, LZO_COMPRESSION, "lzo", 0
};

static const struct squashfs_decompressor squashfs_unknown_comp_ops = {
NULL, NULL, NULL, 0, "unknown", 0
};

static const struct squashfs_decompressor *decompressor[] = {
&squashfs_zlib_comp_ops,
&squashfs_lzma_unsupported_comp_ops,
&squashfs_lzo_unsupported_comp_ops,
&squashfs_unknown_comp_ops
};

Expand Down
4 changes: 3 additions & 1 deletion trunk/fs/squashfs/squashfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ struct meta_index {
/*
* definitions for structures on disk
*/
#define ZLIB_COMPRESSION 1
#define ZLIB_COMPRESSION 1
#define LZMA_COMPRESSION 2
#define LZO_COMPRESSION 3

struct squashfs_super_block {
__le32 s_magic;
Expand Down

0 comments on commit 456d98e

Please sign in to comment.