Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29798
b: refs/heads/master
c: 2b943cf
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jun 25, 2006
1 parent 93d8770 commit 9eae12f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: f82ccdb992d694f46b28f0478f62468260f45607
refs/heads/master: 2b943cf09d75c0dfbfd22548988df48f6c24c727
12 changes: 7 additions & 5 deletions trunk/fs/affs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
int reserved;
unsigned long mount_flags;
int tmp_flags; /* fix remount prototype... */
u8 sig[4];

pr_debug("AFFS: read_super(%s)\n",data ? (const char *)data : "no options");

Expand Down Expand Up @@ -370,8 +371,9 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
printk(KERN_ERR "AFFS: Cannot read boot block\n");
goto out_error;
}
chksum = be32_to_cpu(*(__be32 *)boot_bh->b_data);
memcpy(sig, boot_bh->b_data, 4);
brelse(boot_bh);
chksum = be32_to_cpu(*(__be32 *)sig);

/* Dircache filesystems are compatible with non-dircache ones
* when reading. As long as they aren't supported, writing is
Expand Down Expand Up @@ -420,11 +422,11 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
}

if (mount_flags & SF_VERBOSE) {
chksum = cpu_to_be32(chksum);
printk(KERN_NOTICE "AFFS: Mounting volume \"%*s\": Type=%.3s\\%c, Blocksize=%d\n",
AFFS_ROOT_TAIL(sb, root_bh)->disk_name[0],
u8 len = AFFS_ROOT_TAIL(sb, root_bh)->disk_name[0];
printk(KERN_NOTICE "AFFS: Mounting volume \"%.*s\": Type=%.3s\\%c, Blocksize=%d\n",
len > 31 ? 31 : len,
AFFS_ROOT_TAIL(sb, root_bh)->disk_name + 1,
(char *)&chksum,((char *)&chksum)[3] + '0',blocksize);
sig, sig[3] + '0', blocksize);
}

sb->s_flags |= MS_NODEV | MS_NOSUID;
Expand Down

0 comments on commit 9eae12f

Please sign in to comment.