05:15, Chester wrote: > Okay, this pretty much confirms that autodefrag makes defrag totally > useless.. The above email was with autodefrag turned off.. > > With autodefrag on: > 339 MB file > initially 4 extents > > btrfs fi defrag filename > filefrag filename > > about 900 extents > > I did btrfs defrag two more times and ended up with 2048 extents > > I attached the output of filefrag -v, which shows a pretty peculiar pattern.
This confirmed my speculation. I've fixed this bug a month ago, but the patch hasn't hitted mainline. You can try it out: http://marc.info/?l=linux-btrfs&m=131495014823121&w=2 With this bug fixed, I think autodefrag won't be problematic. -- Li Zefan -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html