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:
Emery Hemingway
2018-07-23 19:53:09 +02:00
committed by Christian Helmuth
parent 7fabc45313
commit 08b774e318
5 changed files with 13 additions and 6 deletions

View File

@ -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;
}
};