Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upbtrfs.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. |
If I run
mkfs.btrfson a disk that is less than41943040bytes, 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.