Re: Entirely unexpected ENOSPC?

2009-03-09 Thread Yien Zheng
This is just a hunch, but maybe the handling of spare files (such as .vdi) is not ideal or not what we're used to with extN. Normally skipped blocks do not count towards the disk full size, but given btrfs' nature they may count as a reservation that would certainly cause an early ENOSPC.

Re: [PATCH] Btrfs: take block group fragmentation into account for allocation

2009-03-08 Thread Yien Zheng
I tried applying this patch, but the fragmentation_percent function is giving me: WARNING: __udivdi3 [/home/partition6/yien/git/linux-git/fs/btrfs/btrfs.ko] undefined! when I compile, and the module fails to load, even though the build completes. I've traced it to the calculation of

Re: [PATCH] Btrfs: take block group fragmentation into account for allocation

2009-03-08 Thread Yien Zheng
= block_group-fragments; do_div(fragments_ratio, max_fragments); return (fragments_ratio * 100); } On Sun, Mar 8, 2009 at 10:37 AM, Jens Axboe jens.ax...@oracle.com wrote: On Sun, Mar 08 2009, Yien Zheng wrote: I tried applying this patch, but the fragmentation_percent function is giving me

Re: Entirely unexpected ENOSPC?

2009-03-07 Thread Yien Zheng
On Wed, 04 Mar 2009 14:48:43 -0600, Hugo Mills hugo-l...@carfax.org.uk wrote: On Wed, Mar 04, 2009 at 01:50:53PM -0500, Josef Bacik wrote: On Wed, Mar 04, 2009 at 06:06:19PM +, Hugo Mills wrote: Last night, this event jammed up a good chunk of my server: Mar 4 01:51:36 vlad

Re: Entirely unexpected ENOSPC?

2009-03-07 Thread Yien Zheng
I just tried umounting the partition and got this: [ 1395.028651] btrfs searching for 69632 bytes, num_bytes 69632, loop 2, allowed_alloc 1 [ 1395.028661] btrfs allocation failed flags 1, wanted 69632 [ 1395.028667] space_info has 81920 free, is full [ 1395.028673] space_info total=10720313344,