Re: btrfs defrag: how does it work?

2011-01-22 Thread Paul Komkoff
On Thu, Jan 20, 2011 at 9:38 PM, Chris Mason chris.ma...@oracle.com wrote: Are you using compression? No. -- This message represents the official view of the voices in my head -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to

Re: btrfs defrag: how does it work?

2011-01-20 Thread Chris Mason
Excerpts from Paul Komkoff's message of 2011-01-19 17:31:56 -0500: On Wed, Jan 19, 2011 at 9:25 PM, Chris Mason chris.ma...@oracle.com wrote: The defrag code doesn't actually defrag.  It opens up the file and recows all the extents and then the delayed allocation code jumps in and makes the

Re: btrfs defrag: how does it work?

2011-01-19 Thread Chris Mason
Excerpts from Paul Komkoff's message of 2011-01-19 14:58:28 -0500: Hello. [root@botva incoming]# btrfs fi defrag file-350mb [root@botva incoming]# filefrag file-350mb file-350mb: 132 extents found The defrag code doesn't actually defrag. It opens up the file and recows all the extents and

Re: btrfs defrag: how does it work?

2011-01-19 Thread Paul Komkoff
On Wed, Jan 19, 2011 at 9:25 PM, Chris Mason chris.ma...@oracle.com wrote: The defrag code doesn't actually defrag.  It opens up the file and recows all the extents and then the delayed allocation code jumps in and makes the biggest possible extent that it can. The reason why you're still