From 54fbf0cbe85c989f5866e30c436325e9c23d34c6 Mon Sep 17 00:00:00 2001 From: gbornste Date: Wed, 1 Jul 2026 14:19:49 -0400 Subject: [PATCH 1/2] Update usage of fuse to make our usage compatible with the newest fuse version --- src/llfs/fuse.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/llfs/fuse.cpp b/src/llfs/fuse.cpp index e81d754..69551ed 100644 --- a/src/llfs/fuse.cpp +++ b/src/llfs/fuse.cpp @@ -52,6 +52,7 @@ namespace llfs { .fd = 0, .pos = 0, }}, + .mem_size = 0, }; const isize n_copied = fuse_buf_copy(&tmp, &bufv, /*flags=*/(fuse_buf_copy_flags)0); From d3d1a685a538ba81dfc85e148d2465c50ecb9306 Mon Sep 17 00:00:00 2001 From: gbornste Date: Wed, 1 Jul 2026 14:22:26 -0400 Subject: [PATCH 2/2] Value initialize fuse object to ensure compatibility with newer versoins --- src/llfs/fuse.cpp | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/llfs/fuse.cpp b/src/llfs/fuse.cpp index 69551ed..f88a9d4 100644 --- a/src/llfs/fuse.cpp +++ b/src/llfs/fuse.cpp @@ -41,19 +41,17 @@ namespace llfs { BATT_CHECK_NOT_NULLPTR(storage); storage->reset(new char[total_size]); - fuse_bufvec tmp{ - .count = 1, - .idx = 0, - .off = 0, - .buf = {{ - .size = total_size, - .flags = (fuse_buf_flags)0, - .mem = storage->get(), - .fd = 0, - .pos = 0, - }}, - .mem_size = 0, - }; + fuse_bufvec tmp{}; + + tmp.count = 1; + tmp.idx = 0; + tmp.off = 0; + + tmp.buf[0].size = total_size; + tmp.buf[0].flags = static_cast(0); + tmp.buf[0].mem = storage->get(); + tmp.buf[0].fd = 0; + tmp.buf[0].pos = 0; const isize n_copied = fuse_buf_copy(&tmp, &bufv, /*flags=*/(fuse_buf_copy_flags)0); if (n_copied < 0) {