linux/fs/ext2
Robin Dong 4e299c1d91 ext2: fix error msg when mounting fs with too-large blocksize
When ext2 mounts a filesystem, it attempts to set the block device
blocksize with a call to sb_set_blocksize, which can fail for
several reasons.  The current failure message in ext2 prints:

  EXT2-fs (loop1): error: blocksize is too small

which is not correct in all cases.  This can be demonstrated
by creating a filesystem with

  # mkfs.ext2 -b 8192

on a 4k page system, and attempting to mount it.

Change the error message to a more generic:

  EXT2-fs (loop1): bad blocksize 8192

to match the error message in ext3.

Signed-off-by: Robin Dong <sanbai@taobao.com>
Reviewed-by: Coly Li <bosong.ly@taobao.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2011-05-17 13:47:42 +02:00
..
acl.c
acl.h
balloc.c Fix common misspellings 2011-03-31 11:26:23 -03:00
dir.c
ext2.h
file.c
ialloc.c
inode.c Fix common misspellings 2011-03-31 11:26:23 -03:00
ioctl.c
Kconfig
Makefile
namei.c
super.c ext2: fix error msg when mounting fs with too-large blocksize 2011-05-17 13:47:42 +02:00
symlink.c
xattr.c Fix common misspellings 2011-03-31 11:26:23 -03:00
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c
xip.c
xip.h