Re: [PATCH v2] btrfs-progs: Add minimum device size check.

2014-06-23 Thread David Sterba
On Fri, Jun 20, 2014 at 11:13:41AM +0800, Qu Wenruo wrote: Btrfs has global block reservation, so even mkfs.btrfs can execute without problem, there is still a possibility that the filesystem can't be mounted. For example when mkfs.btrfs on a 8M file on x86_64 platform, kernel will refuse to

[PATCH v2] btrfs-progs: Add minimum device size check.

2014-06-19 Thread Qu Wenruo
Btrfs has global block reservation, so even mkfs.btrfs can execute without problem, there is still a possibility that the filesystem can't be mounted. For example when mkfs.btrfs on a 8M file on x86_64 platform, kernel will refuse to mount due to ENOSPC, since system block group takes 4M and mixed