Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please implement "cp --reflink=always" with ZoL #1063

Closed
petermaloney opened this issue Oct 21, 2012 · 5 comments
Closed

Please implement "cp --reflink=always" with ZoL #1063

petermaloney opened this issue Oct 21, 2012 · 5 comments

Comments

@petermaloney
Copy link

Please implement "cp --reflink=always" with ZoL

I am using it happily with btrfs. For example I downloaded xen 4.1.3 source and wanted to try a few things with it, so I made 3 or 4 copies of the tree (taking little space and being nearly instant due to reflinks) and then did my hacks and tests without having to rebuild each time to install each from the same tree.

using "cp --reflink=always" is like dedup without dedup enabled

it is not ordinary hardlinks... it is like dedup without the dedup table

http://pastebin.com/2zE9D36u

it's just like dedup... modify the original, and the reflinked copies don't chnage

I don't think it is ever file level... only block. That way if you modify some blocks of a file, it cows only those blocks, not the whole file, just like dedup or snapshots.

ryao on freenode tried this and reported this result:
cp: failed to clone ‘portage/app-cdr/k3b/metadata.xml’ from ‘/usr/portage/app-cdr/k3b/metadata.xml’: Inappropriate ioctl for device

@petermaloney
Copy link
Author

BTW the pastebin example is with btrfs

@petermaloney
Copy link
Author

oh apparently this is a duplicate of #405

@behlendorf
Copy link
Contributor

For now you can always use clones.

@galt
Copy link

galt commented Sep 27, 2017

Clones and snapshots are too heavy duty.

@beren12
Copy link
Contributor

beren12 commented Sep 27, 2017

bookmarks then?

pcd1193182 pushed a commit to pcd1193182/zfs that referenced this issue Sep 26, 2023
…zfs#1063)

Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.71 to 0.1.72.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](dtolnay/async-trait@0.1.71...0.1.72)

---
updated-dependencies:
- dependency-name: async-trait
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants