From 90c3cc40ef9046c12cc582a7cdc6025de2c6ba8f Mon Sep 17 00:00:00 2001 From: Vlad-Gabriel Serbu Date: Mon, 27 Jul 2026 09:57:09 +0100 Subject: [PATCH 1/2] gitignore: ignore host-only example builds Signed-off-by: Vlad-Gabriel Serbu --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index e90cb2ef..70555175 100644 --- a/.gitignore +++ b/.gitignore @@ -88,3 +88,5 @@ driver/kcompat/.scratch/ # Project-local scratch space /tmp/ +tmp/ +**/build-host/ From f7f827cf3bc05502bd5aaeebb249c7cf0388d466 Mon Sep 17 00:00:00 2001 From: Vlad-Gabriel Serbu Date: Mon, 27 Jul 2026 16:04:13 +0100 Subject: [PATCH 2/2] libslash: propagate ftruncate failures Signed-off-by: Vlad-Gabriel Serbu --- driver/libslash/src/qdma.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/driver/libslash/src/qdma.c b/driver/libslash/src/qdma.c index 5a0aa36e..aaa33cd7 100644 --- a/driver/libslash/src/qdma.c +++ b/driver/libslash/src/qdma.c @@ -171,7 +171,9 @@ static ssize_t qdma_fallback_subxfer(int qpair_fd, off_t want = (off_t)(x->dev_addr + x->length); if (fstat(qpair_fd, &st) == 0 && st.st_size < want) { - (void)ftruncate(qpair_fd, want); + if (ftruncate(qpair_fd, want) != 0) { + return -1; + } } }