Feature: add btrfs support

Merge code used during performance investigations.