Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
Csepp 馃將
Csepp 馃將
@csepp@merveilles.town  路  activity timestamp 5 days ago

Is there a way on #ZFS or #BTRFS to create a file that is the concatenation of two files?
So, cat a b > ab, but only taking up metadata?
Is the best way to just do the write and then ask the kernel to deduplicate it, and pray that it doesn't flush to disk in the meantime?
This would be really useful for serving smaller chunks of packages on #NixOS or #Guix, but also potentially on other distros as well, or even for general download optimization. (cc #bittorrent ?)

edit: Thanks, apparently there is an ioctl for this:
https://man7.org/linux/man-pages/man2/ioctl_ficlonerange.2.html

  • Copy link
  • Flag this post
  • Block

A small Bonfire corner on the internet

This is a small personal instance of Bonfire in the Fediverse.

A small Bonfire corner on the internet: About 路 Code of conduct 路 Privacy 路
Bonfire social 路 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct