public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* btrfs send/receive not always sharing extents
@ 2022-10-08  5:57 Glenn Washburn
  2022-10-10  9:42 ` Filipe Manana
  0 siblings, 1 reply; 6+ messages in thread
From: Glenn Washburn @ 2022-10-08  5:57 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 781 bytes --]

I've got two reflinked files in a subvol that I'm sending/receiving to
a different btrfs filesystem and they are not sharing extents on the
receiving side. Other reflinked files in the same subvol are being
reflinked on the receive side. The send side has a fairly old creation
date if that matters. Attached is the receive log and a diff of
filefrag's output for the files on the source volume to show that the
two files (IMG_20200402_143055.dng and IMG_20200402_143055.dng.ref) are
refinked on the source volume. This is a somewhat minimal example of
what's happening on a big send that I'm doing that is failing because
the receive side it too small to hold data when the reflinks are
broken. Is this a bug? or what can I do to get send to see these files
are reflinked?

Glenn

[-- Attachment #2: filefrag.log.diff --]
[-- Type: text/x-patch, Size: 671 bytes --]

--- /dev/fd/63	2022-10-08 00:31:46.783138591 -0500
+++ /dev/fd/62	2022-10-08 00:31:46.787138126 -0500
@@ -1,5 +1,5 @@
 Filesystem type is: 9123683e
-File size of /media/test-btrfs/test/1.ro/IMG_20200402_143055.dng is 24674116 (6024 blocks of 4096 bytes)
+File size of /media/test-btrfs/test/1.ro/IMG_20200402_143055.dng.ref is 24674116 (6024 blocks of 4096 bytes)
  ext:     logical_offset:        physical_offset: length:   expected: flags:
    0:        0..    6023: 1131665768..1131671791:   6024:             last,shared,eof
-/media/test-btrfs/test/1.ro/IMG_20200402_143055.dng: 1 extent found
+/media/test-btrfs/test/1.ro/IMG_20200402_143055.dng.ref: 1 extent found

[-- Attachment #3: btrfs.receive.log.xz --]
[-- Type: application/x-xz, Size: 3860 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-12 10:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-08  5:57 btrfs send/receive not always sharing extents Glenn Washburn
2022-10-10  9:42 ` Filipe Manana
2022-10-11  0:30   ` Paul Jones
2022-10-11  9:31     ` Filipe Manana
2022-10-11 20:49   ` Glenn Washburn
2022-10-12 10:03     ` Filipe Manana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox