Re: Why does btrfs defrag work worse than making a copy of a file?

2014-07-16 Thread Sebastian Ochmann
On 16.07.2014 09:53, Liu Bo wrote: On Tue, Jul 15, 2014 at 11:17:26PM +0200, Sebastian Ochmann wrote: Hello, I have a VirtualBox hard drive image which is quite fragmented even after very light use; it is 1.6 GB in size and has around 5000 fragments (I'm using filefrag to determine the number

Re: Why does btrfs defrag work worse than making a copy of a file?

2014-07-16 Thread Liu Bo
On Wed, Jul 16, 2014 at 12:50:30PM +0200, Sebastian Ochmann wrote: On 16.07.2014 09:53, Liu Bo wrote: On Tue, Jul 15, 2014 at 11:17:26PM +0200, Sebastian Ochmann wrote: Hello, I have a VirtualBox hard drive image which is quite fragmented even after very light use; it is 1.6 GB in size and

Why does btrfs defrag work worse than making a copy of a file?

2014-07-15 Thread Sebastian Ochmann
Hello, I have a VirtualBox hard drive image which is quite fragmented even after very light use; it is 1.6 GB in size and has around 5000 fragments (I'm using filefrag to determine the number of fragments). Doing a btrfs fi defrag -f image.vdi reduced the number of fragments to 3749. Even