[RT @gray_dot_bmp]
TODAY I LEARNED that `cat file1 > file2` on Btrfs will just create a reflink instead of reading & writing all data

¹ thanks to the magic of copy_file_range()

I know `cp file1 file2` in new coreutils will reflink and it's a nice feature, but for `cat` it's really unexpected lol

Sign in to participate in the conversation
Octodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!