]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Sector Size check during Mount
authorKeith Mannthey <kmannth@us.ibm.com>
Wed, 30 Nov 2011 01:44:12 +0000 (17:44 -0800)
committerDavid Sterba <dsterba@suse.cz>
Wed, 15 Feb 2012 15:40:22 +0000 (16:40 +0100)
commitb0a120e8536b390b2fdfc1ac8016076d3d1b23d0
treec41936dbc4201d118cc145265d0343e3b93d46f6
parent6311214b26d01f85f2ed6f0fb6cc24cbcb04ad28
btrfs: Sector Size check during Mount

Gracefully fail when trying to mount a BTRFS file system that has a
sectorsize smaller than PAGE_SIZE.

On PPC it is possible to build a FS while using a 4k PAGE_SIZE kernel
then boot into a 64K PAGE_SIZE kernel.  Presently open_ctree fails in an
endless loop and hangs the machine in this situation.

My debugging has show this Sector size < Page size to be a non trivial
situation and a graceful exit from the situation would be nice for the
time being.

Signed-off-by: Keith Mannthey <kmannth@us.ibm.com>
fs/btrfs/disk-io.c