From a60c53a9e103b9ec28796bc127cdb86a35f5215c Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Wed, 17 Nov 2021 01:51:19 -0500 Subject: [PATCH] fs: dump the TREE_SEARCH_V2 parameters on exception The current error message is useless. At least say which tree we were searching. Signed-off-by: Zygo Blaxell --- lib/fs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fs.cc b/lib/fs.cc index db10b13..fe300f5 100644 --- a/lib/fs.cc +++ b/lib/fs.cc @@ -812,7 +812,7 @@ namespace crucible { BtrfsIoctlSearchKey::do_ioctl(int fd) { if (!do_ioctl_nothrow(fd)) { - THROW_ERRNO("BTRFS_IOC_TREE_SEARCH_V2: " << name_fd(fd)); + THROW_ERRNO("BTRFS_IOC_TREE_SEARCH_V2: " << name_fd(fd) << ": " << *this); } }