3 ms·
He might've gotten confused by newer filesystems like btrfs which let you create links to files instantly which effectively work exactly like a copy. The second
by 411111111111111 5y ago
He might've gotten confused by newer filesystems like btrfs which let you create links to files instantly which effectively work exactly like a copy.
The second file however isn't actually created until a change has occurred, so the linking is only an entry in the catalog to the inodes i believe.
i.e. btrfs snapshots use this feature.
- Klasiaster 5y agoThis can be enabled as available with the --reflink=auto flag for cp. When copying between different filesystems it still makes sense to add the --sparse=auto flag to keep a copy of a sparse file sparse, too. My alias for cp is: cp -i --reflink=auto --sparse=auto