logoalt Hacker News

ummonk05/01/20252 repliesview on HN

I would assume cp uses ioctl (with atomic copies of individual files on filesystems that support CoW like APFS and BTRFS), whereas sqlite probably uses mmap?


Replies

vlovich12305/01/2025

I was trying to find evidence that reflink copies are atomic and could not and LLMs seem to think they are not. So at best may be a btrfs only feature?

show 1 reply
lmz05/02/2025

So not a "naive" cp, but at least it calls a shared ioctl that is implemented buy multiple filesystems.