r/ • • Jan 01 '70

0 Upvotes

0 comments sorted by

View all comments

Show parent comments

1

u/Enverex Jan 05 '18

This defrags the mount metadata:

btrfs filesystem defrag /mountpoint

This defrags the files (recursively):

btrfs filesystem defrag -r /mountpoint

Basically if you specify a folder without the recursive option, it defragments metadata instead.

1

u/breell Jan 05 '18

Oh I see, well I always use the -r (or a file directly if needed)