From f4e9c94bf278ce796db86a9719e273f510968057 Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Tue, 13 Feb 2018 15:13:23 +0100 Subject: [PATCH] vfs lib: complain about unsuccessful fs packets Issue #2672 --- repos/os/src/lib/vfs/fs_file_system.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repos/os/src/lib/vfs/fs_file_system.h b/repos/os/src/lib/vfs/fs_file_system.h index 361137e332..78ad1ef661 100644 --- a/repos/os/src/lib/vfs/fs_file_system.h +++ b/repos/os/src/lib/vfs/fs_file_system.h @@ -521,6 +521,9 @@ class Vfs::Fs_file_system : public File_system try { _handle_space.apply(id, [&] (Fs_vfs_handle &handle) { + if (!packet.succeeded()) + Genode::error("packet operation=", (int)packet.operation(), " failed"); + switch (packet.operation()) { case Packet_descriptor::READ_READY: handle.read_ready_state = Handle_state::Read_ready_state::READY;