Questions tagged [reflink]
A reflink is a type of lightweight copy in btrfs and xfs.
11 questions
0 votes
0 answers
141 views
what the `cp --reflink=always` will do if I try to copy directory that contains reflink to a diffrent disk?
I have a folder root1 on disk partition sda1 which contain reflink/mnt/sda1/root1/a->/mnt/sda1/root1/raw/a I have another folder root1 on disk partition sdb1, that has reflink /mnt/sdb1/root1/a->...
2 votes
0 answers
394 views
Why so much btrfs-send data for reflinks
I'm experiencing a very weird Btrfs "send" issue with file reflinks, and after so many trials, I found the details: First, I created a subvolume called "1": btrfs subvolume create ...
22 votes
1 answer
9k views
In Linux, which filesystems support reflinks?
btrfs supports reflinks, XFS supports reflinks (since 2017 I think?). Are there any other filesystems that support it? truncate -s 1G test.file; cp --reflink=always test.file ref.test.file;
0 votes
1 answer
321 views
Reflink copy diff
I want to make a behaviour like btrfs send and btrfs receive, but on a per-file basis. As far as I see it, I can use cp -ax --reflink=always to make a "snapshot" of the file. Let's assume that two ...
8 votes
1 answer
2k views
Detect btrfs reflinked files
It's clear, with cp --reflink foo bar I can copy a file on btrfs without wasting space. But how can I detect that the two files (foo and bar here) are using the same "space unit"? If they ...
22 votes
1 answer
17k views
Why does "cp -R --reflink=always" perform a standard copy on a Btrfs filesystem?
Btrfs support Copy-On-Write. I tried to use that feature to clone a directory: cp -R --reflink=always foo_directory foo_directory.mirror I expected the command to finish almost instantly (like a ...