[XFS] Don't grow filesystems past the size they can index.
authorNathan Scott <nscott@aconex.com>
Mon, 14 May 2007 08:24:02 +0000 (18:24 +1000)
committerTim Shimmin <tes@chook.melbourne.sgi.com>
Sat, 14 Jul 2007 05:21:29 +0000 (15:21 +1000)
commit4cc929ee305c69573cb842aade059dbe2a93940c
treebf6cee68d7ca81296864576f27e68900e122d04f
parent1fa40b01ae4d1b00e366d4949edcc230f5cd6d99
[XFS] Don't grow filesystems past the size they can index.

When growing a filesystem we don't check to see if the new size overflows
the page cache index range, so we can do silly things like grow a
filesystem page 16TB on a 32bit. Check new filesystem sizes against the
limits the kernel can support.

SGI-PV: 957886
SGI-Modid: xfs-linux-melb:xfs-kern:28563a

Signed-Off-By: Nathan Scott <nscott@aconex.com>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/xfs_fsops.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_rtalloc.c