]> git.baikalelectronics.ru Git - kernel.git/commit
reiserfs: ignore on disk s_bmap_nr value
authorJeff Mahoney <jeffm@suse.com>
Fri, 19 Oct 2007 06:39:27 +0000 (23:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 19 Oct 2007 18:53:35 +0000 (11:53 -0700)
commit179278bedb753f21da185c7f6088c1c65473b6c0
tree967eba31bdb120305697f5d0292964abead07962
parent572717d2ac7aade5cdfe8b1425932b6845a45b54
reiserfs: ignore on disk s_bmap_nr value

Implement support for file systems larger than 8 TiB.

The reiserfs superblock contains a 16 bit value for counting the number of
bitmap blocks.  The rest of the disk format supports file systems up to 2^32
blocks, but the bitmap block limitation artificially limits this to 8 TiB with
a 4KiB block size.

Rather than trust the superblock's 16-bit bitmap block count, we calculate it
dynamically based on the number of blocks in the file system.  When an
incorrect value is observed in the superblock, it is zeroed out, ensuring that
older kernels will not be able to mount the file system.

Userspace support has already been implemented and shipped in reiserfsprogs
3.6.20.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/bitmap.c
fs/reiserfs/journal.c
fs/reiserfs/resize.c
fs/reiserfs/super.c
include/linux/reiserfs_fs.h