Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144914
b: refs/heads/master
c: fffb47b
h: refs/heads/master
v: v3
  • Loading branch information
Phillip Lougher committed May 13, 2009
1 parent 22f427b commit b4ccc9c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a37b06d589f2c687a38d07569f4ef97c650fde39
refs/heads/master: fffb47b80e8bb3f171ef02b90b1ae22c63983979
10 changes: 10 additions & 0 deletions trunk/fs/squashfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ static int squashfs_fill_super(struct super_block *sb, void *data, int silent)
if (msblk->block_size > SQUASHFS_FILE_MAX_SIZE)
goto failed_mount;

/*
* Check the system page size is not larger than the filesystem
* block size (by default 128K). This is currently not supported.
*/
if (PAGE_CACHE_SIZE > msblk->block_size) {
ERROR("Page size > filesystem block size (%d). This is "
"currently not supported!\n", msblk->block_size);
goto failed_mount;
}

msblk->block_log = le16_to_cpu(sblk->block_log);
if (msblk->block_log > SQUASHFS_FILE_MAX_LOG)
goto failed_mount;
Expand Down

0 comments on commit b4ccc9c

Please sign in to comment.