btrfs icon indicating copy to clipboard operation
btrfs copied to clipboard

Cannot create a reflink between two different filesystems.

Open KenJyn76 opened this issue 3 years ago • 5 comments

Hey. not sure if this is somehow user error, or I'm not understanding the feature, but I'm trying to make a copy of a game (I have two accounts, and the files are the same across the two launchers, except for two files), so to keep the game versions synced, and avoid having to update twice every time I update, I'm trying to create a reflink. Problem is, my btrfs drive is a RAID drive, created within BTRFS, and I'm getting the error in the title. Maybe the reflink copy isn't recognizing that these two drives are both one BTRFS volume?

KenJyn76 avatar Nov 25 '20 21:11 KenJyn76

I don't understand... are you saying that you're getting this message when trying to do a reflink copy on the same volume? As in, the paths have the same drive letter?

avoid having to update twice every time I update

That's not how reflink copies work - from the user's point of view they're functionally identical to normal copies. I think a symlink is probably what you're after.

maharmstone avatar Nov 26 '20 00:11 maharmstone

Yes, I'm getting the error trying to create a link with a source and target on D:.

I know a symlink would likely be better for what I'm after, but I wanted to experiment with reflinks a little to be honest.

On Wed, Nov 25, 2020, 7:00 PM maharmstone [email protected] wrote:

I don't understand... are you saying that you're getting this message when trying to do a reflink copy on the same volume? As in, the paths have the same drive letter?

avoid having to update twice every time I update

That's not how reflink copies work - from the user's point of view they're functionally identical to normal copies. I think a symlink is probably what you're after.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/maharmstone/btrfs/issues/328#issuecomment-733997716, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC6757P5MZ5DD75JCPGAAGTSRWLA7ANCNFSM4UC4ZFOQ .

KenJyn76 avatar Nov 26 '20 00:11 KenJyn76

I responded while I was at work, I'm pretty sure I was clear, but:

Yes, reflink source and target are on the same volume. Volume is two drives formatted to BTRFS as the same volume, in RAID 0. I'm suspecting what's happening is that the handler is trying to create the reflink on the other drive in the volume, and therefore throwing an error, thinking it's a different volume. I'm just spitballing a little bit though.

Steps to reproduce (if possible):

Format two drives to BTRFS using mkbtrfs Make both drives into one volume, using the Btrfs section of the Properties dialog Try to make a reflink on that volume (Hopefully) see it fail, or not have the option in the context menu appear at all

Command line method, as expected, fails without any error.

KenJyn76 avatar Nov 26 '20 05:11 KenJyn76

.symlinks are working fine for me, what's the benefit of a reflink?

Chaython avatar Dec 05 '20 23:12 Chaython

How do you use reflinks? Because I am not able to able to make one using rundll32 as well (with args: 0 0 "src dest" 0)

TheMadHau5 avatar Feb 26 '21 05:02 TheMadHau5

Closing old issues

maharmstone avatar Nov 30 '23 01:11 maharmstone