Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207739
b: refs/heads/master
c: 8800a04
h: refs/heads/master
i:
  207737: 0f4874f
  207735: 9d17a0e
v: v3
  • Loading branch information
Bob Copeland committed Jul 10, 2010
1 parent 5b9b6cb commit eecff14
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 9442e54f433eff9b6fbd0836611df4c1919df370
refs/heads/master: 8800a044c71a128633cf3febaf4780531a991334
6 changes: 6 additions & 0 deletions trunk/fs/omfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,12 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent)
(unsigned long long) sbi->s_num_blocks);
goto out_brelse_bh2;
}
if (sbi->s_clustersize < 1 ||
sbi->s_clustersize > OMFS_MAX_CLUSTER_SIZE) {
printk(KERN_ERR "omfs: cluster size out of range (%d)",
sbi->s_clustersize);
goto out_brelse_bh2;
}

ret = omfs_get_imap(sb);
if (ret)
Expand Down
1 change: 1 addition & 0 deletions trunk/fs/omfs/omfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#define OMFS_EXTENT_CONT 0x40
#define OMFS_XOR_COUNT 19
#define OMFS_MAX_BLOCK_SIZE 8192
#define OMFS_MAX_CLUSTER_SIZE 8

struct omfs_super_block {
char s_fill1[256];
Expand Down

0 comments on commit eecff14

Please sign in to comment.