mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 08:10:54 +07:00
Btrfs: do not mount when we have a sectorsize unequal to PAGE_SIZE
Our code is not ready to cope with a sectorsize that's not equal to PAGE_SIZE. It will lead to hanging-on while writing something. Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
This commit is contained in:
parent
207a232cca
commit
8d082fb727
@ -2254,9 +2254,9 @@ int open_ctree(struct super_block *sb,
|
|||||||
goto fail_sb_buffer;
|
goto fail_sb_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sectorsize < PAGE_SIZE) {
|
if (sectorsize != PAGE_SIZE) {
|
||||||
printk(KERN_WARNING "btrfs: Incompatible sector size "
|
printk(KERN_WARNING "btrfs: Incompatible sector size(%lu) "
|
||||||
"found on %s\n", sb->s_id);
|
"found on %s\n", (unsigned long)sectorsize, sb->s_id);
|
||||||
goto fail_sb_buffer;
|
goto fail_sb_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user