Questions tagged [reflink]

A reflink is a type of lightweight copy in btrfs and xfs.

Filter by
Sorted by
Tagged with
2 votes
0 answers
107 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 ...
user avatar
  • 21
1 vote
1 answer
226 views

GNU cp: What's the difference between `--link` and `--reflink=always`?

What's the difference between --link and --reflink=always? I use the following command as an mv substitute, and I am wondering if using --reflink is a better choice. command gcp -r --link --archive --...
user avatar
  • 1,305
12 votes
1 answer
2k 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;
user avatar
2 votes
0 answers
162 views

Combine mkfifo and cp --reflink to append files without copying data

I have huge files {0..9}.bin which I want concatenate into out.bin. I don't need the original files afterwards. So I was wondering, if this is possible by only modifying the filesystem index without ...
user avatar
0 votes
1 answer
140 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 ...
user avatar
8 votes
1 answer
3k views

Is there a way to enable reflink on an existing XFS filesystem?

I currently have a 4TB RAID 1 setup on a small, personal Linux server, which is formatted as XFS in LVM. I am interested in enabling the reflink feature of XFS, but I did not do so when I first ...
user avatar
  • 181
5 votes
1 answer
828 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 ...
user avatar
7 votes
1 answer
1k views

What does a rmlint's "clone" for btrfs do?

I was reading the rmlint manual, and one of the duplicate handlers are clone and reflink: · clone: btrfs only. Try to clone both files with the BTRFS_IOC_FILE_EXTENT_SAME ioctl(3p). This will ...
user avatar
  • 9,082