]> git.hungrycats.org Git - bees/commit
fs: make FILE_EXTENT_SAME failures self-describing next
authorZygo Blaxell <bees@furryterror.org>
Sun, 24 May 2026 19:09:18 +0000 (15:09 -0400)
committerZygo Blaxell <bees@furryterror.org>
Sat, 5 Sep 2026 04:03:59 +0000 (00:03 -0400)
commit538786466ae940905abc1deec885e3a55a9403f9
tree40c2ecea2d1e9123cbf43ec77d4ee2965ecffe54
parent4128833f74f1f13849d5a4be68e4942daffc28be
fs: make FILE_EXTENT_SAME failures self-describing

The old error dumped the raw btrfs_ioctl_same_args struct after the
source path.  With long backup-snapshot pathnames the line was
truncated before the destination offset, so the log rarely contained
enough to understand or reproduce the failure.

Emit the parameters of dedupe_file_range directly: the src file and
offset, the length, and every dst file and offset.  That is the full
set of inputs needed to replay the ioctl by hand.

Assisted-by: Claude-Code:claude-opus-4-7
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
lib/fs.cc