Closed CyberShadow closed 8 years ago
I couldn't find a stand-alone utility to clone a file range. I needed it to insert a bootsector before a partition image. Have I overlooked one?
The reason I submitted is that I found people referencing this project solely because of its btrfs-extent-same
utility, which is useful on its own.
Hmm yeah there isn't much out there that I can recall. Xfstests rolls their own for testing btrfs clone:
does that work for you?
Personally I don't mind either way, as I can continue using the tool I wrote. Utilitaristically, I think it would be nice for there to be a tool that can be packaged, accompanied by a man page, etc. Completely understandable if that's outside this project's scope.
Ideally, such a tool (as well as some way to call the ioctl duperemove uses) should be present in btrfs-progs. Those ioctls are actually the only two I know of right now that aren't usable from btrfs-progs.
Thanks for the patch, however I don't feel like we need this in duperemove at the moment.