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

2014-06-23 Thread David Sterba
On Thu, Jun 19, 2014 at 11:25:38AM +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

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

2014-06-23 Thread Qu Wenruo
Original Message Subject: Re: [PATCH] btrfs-progs: Add minimum device size check. From: David Sterba dste...@suse.cz To: Qu Wenruo quwen...@cn.fujitsu.com Date: 2014年06月23日 22:36 On Thu, Jun 19, 2014 at 11:25:38AM +0800, Qu Wenruo wrote: Btrfs has global block reservation, so

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

2014-06-18 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

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

2014-06-18 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