mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 15:18:20 +00:00
VFS: add an error to to the Sync_result enum
Sync errors can be used to indicate failed writes across the File_system session. Ref #2920
This commit is contained in:
committed by
Christian Helmuth
parent
7fabc45313
commit
08b774e318
@ -211,12 +211,15 @@ class Vfs::Fs_file_system : public File_system
|
||||
|
||||
::File_system::Session::Tx::Source &source = *_fs.tx();
|
||||
|
||||
Sync_result result = packet.succeeded()
|
||||
? SYNC_OK : SYNC_ERR_INVALID;
|
||||
|
||||
queued_sync_state = Handle_state::Queued_state::IDLE;
|
||||
queued_sync_packet = ::File_system::Packet_descriptor();
|
||||
|
||||
source.release_packet(packet);
|
||||
|
||||
return SYNC_OK;
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user