]> git.baikalelectronics.ru Git - uboot.git/commit
fs: btrfs: Reject fs with sector size other than PAGE_SIZE
authorQu Wenruo <wqu@suse.com>
Thu, 26 Mar 2020 05:35:55 +0000 (13:35 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 17 Apr 2020 02:13:50 +0000 (22:13 -0400)
commit4b627b05316d4d7b6c66a6206426d265ef0c5ead
treef5128276a54ae84fbdf8294d0be01776c1c7f8cf
parentd46280bffea1b46cb67eec18fb6d1f3b942682af
fs: btrfs: Reject fs with sector size other than PAGE_SIZE

Although in theory u-boot fs driver could easily support more sector
sizes, current code base doesn't have good enough way to grab sector
size yet.

This would cause problem for later LZO fixes which rely on sector size.

And considering that most u-boot boards are using 4K page size, which is
also the most common sector size for btrfs, rejecting fs with
non-page-sized sector size shouldn't cause much problem.

This should only be a quick fix before we implement better sector size
support.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Cc: Marek Behun <marek.behun@nic.cz>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
fs/btrfs/super.c