Sparsify / hole punching tool

2012-11-18 Thread Remco Hosman - Yerf IT
I wrote a little tool you can use to scan a file and punch holes, so make it sparse. Confirmed to work on 3.7.0-rc6 Feel free to use it in any way you like, and of course improve it. http://pastebin.com/8SjEsBLD Remco Hosman-- To unsubscribe from this list: send the line unsubscribe

Re: Sparsify / hole punching tool

2012-11-18 Thread Hugo Mills
On Sun, Nov 18, 2012 at 10:04:29PM +0100, Remco Hosman - Yerf IT wrote: I wrote a little tool you can use to scan a file and punch holes, so make it sparse. Confirmed to work on 3.7.0-rc6 Feel free to use it in any way you like, and of course improve it. http://pastebin.com/8SjEsBLD

Re: Sparsify / hole punching tool

2012-11-18 Thread Remco Hosman - Yerf IT
as requested. like this? ---begin #define _GNU_SOURCE /* See feature_test_macros(7) */ #include fcntl.h #include sys/types.h #include sys/stat.h #include errno.h #include stdio.h #include string.h #include linux/falloc.h #include unistd.h #define BLOCKSIZE 4096 int main(int argc,

btrfs crash - Null dereference - 3.7.0-rc5-00068-gc5e35d6

2012-11-18 Thread Gustavo Padovan
Hi, my system suddenly crashed and gave me this dump: http://imgur.com/oO6S0 I checked and there is not btrfs commit in linus' tree since I compiled this kernel. Gustavo -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to

Re: [PATCH 1/2] Btrfs: fix a deadlock in aborting transaction due to ENOSPC

2012-11-18 Thread Liu Bo
On Fri, Nov 16, 2012 at 03:19:49PM +0100, David Sterba wrote: On Mon, Nov 05, 2012 at 08:42:08PM +0800, Liu Bo wrote: When committing a transaction, we may bail out of running delayed refs due to ENOSPC, and then abort the current transaction to flip into readonly. But we'll hit a