diff options
author | Tom Rini <trini@konsulko.com> | 2020-04-17 11:08:08 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-04-17 11:17:29 -0400 |
commit | 8d5d3bcf3c53d798bd7f3fe7092e994593bcc41c (patch) | |
tree | dd145ccf787512306926b0e5f327046ccfbee33c /fs/btrfs/super.c | |
parent | 0f238dab6d17caabe4f9781d23aaa6087139f2bd (diff) | |
parent | 65c141ebbd68b70d6934b4fb965f3219d0e99817 (diff) |
Merge branch '2020-04-16-master-imports'
- DM GPIO improvements
- BTRFS fixes
- Corrections around gd->new_bootstage alignment
- Start documentation improvements to support 'make refcheckdocs'
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 2dc4a6fcd7..b693a073fc 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -7,6 +7,7 @@ #include "btrfs.h" #include <memalign.h> +#include <linux/compat.h> #define BTRFS_SUPER_FLAG_SUPP (BTRFS_HEADER_FLAG_WRITTEN \ | BTRFS_HEADER_FLAG_RELOC \ @@ -232,6 +233,13 @@ int btrfs_read_superblock(void) return -1; } + if (sb->sectorsize != PAGE_SIZE) { + printf( + "%s: Unsupported sector size (%u), only supports %u as sector size\n", + __func__, sb->sectorsize, PAGE_SIZE); + return -1; + } + if (btrfs_info.sb.num_devices != 1) { printf("%s: Unsupported number of devices (%lli). This driver " "only supports filesystem on one device.\n", __func__, |