-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
btrfs.mkfs reports incorrect minimum size #70
Comments
Are you using --rootdir option? In that case, it will need extra space for the content. |
No, I wasn't using the |
OK, this is a regression. v4.0 btrfs-progs is still OK, I assume it's chunk allocator causing the problem. |
commit c11e36a
OK, that's because we're no longer forcing mixed block group for small filesystem. I'll update the minimal size calculator to handle both mixed block group and current separate profiles. |
@WesleyAC https://patchwork.kernel.org/patch/10001161/ |
Possible related/dup bug. |
Will be addressed by pull request #66 |
The mkfs and minimal size fixes have been merged to devel branch, this was an independent part of the #66 pull. |
This error is because the maintainer no longer forcing mixed block group for small filesystem. While the minimal size calculation is still based on mixed block group. related link: kdave/btrfs-progs#70 related patch: "Btrfs-progs: Do not force mixed block group creation unless '-M' option is specified" before: ERROR: 'raw.img' is too small to make a usable filesystem ERROR: minimum size for each btrfs device is 114294784 after: /result/xfstests/4HDD-btrfs-generic-logdev-ucode=0xe2/lkp-skl-d06/debian-10.4-x86_64-20200603.cgz/x86_64-rhel-8.3/gcc-9/3650b228f83adda7e5ee532e2b90429c03f7b9ec/1$ cat xfstests.json { "xfstests.generic.487.skip": [ 1 ] } Signed-off-by: Carel Si <beibei.si@intel.com> Signed-off-by: Philip Li <philip.li@intel.com>
…m" for btrfs This error is because the maintainer no longer forcing mixed block group for small filesystem. While the minimal size calculation is still based on mixed block group. Only btrfs need to add -M. related link: kdave/btrfs-progs#70 related patch: "Btrfs-progs: Do not force mixed block group creation unless '-M' option is specified" before: ERROR: 'raw.img' is too small to make a usable filesystem ERROR: minimum size for each btrfs device is 114294784 after: /result/xfstests/4HDD-btrfs-generic-logdev-ucode=0xe2/lkp-skl-d06/debian-10.4-x86_64-20200603.cgz/x86_64-$ { "xfstests.generic.487.skip": [ 1 ] } Signed-off-by: Carel Si <beibei.si@intel.com> Signed-off-by: Philip Li <philip.li@intel.com>
If I run
mkfs.btrfs
on a disk that is less than41943040
bytes, I get:However, the actual minimum size seems to be much higher. Disks of up to 80MB in size report:
It seems like it would be more useful to report the size needed to successfully complete in the first message.
Checked on
mkfs.btrfs, part of btrfs-progs v4.12.1
.The text was updated successfully, but these errors were encountered: