From 187d12fc251d6ed0668d2a57f76bcdb4c7d0368f Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Thu, 5 Nov 2020 01:36:13 -0500 Subject: [PATCH] fs: always use container's actual size not requested size The requested size may not match the final size of the container, so consistently use the container's size after prepare(), not the requested size. 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 44da207..f45b84c 100644 --- a/lib/fs.cc +++ b/lib/fs.cc @@ -409,7 +409,7 @@ namespace crucible { btrfs_ioctl_ino_path_args *p = static_cast(this); BtrfsDataContainer container(m_container_size); fspath = reinterpret_cast(container.prepare(m_container_size)); - size = m_container_size; + size = container.get_size(); m_paths.clear();