vfs: remove check_unblock from File_io_service

genodelabs/genode#4394
This commit is contained in:
Johannes Schlatow 2022-02-04 17:20:23 +01:00 committed by Christian Helmuth
parent 1d5af600cc
commit f33916e2dc
5 changed files with 0 additions and 34 deletions

View File

@ -265,13 +265,6 @@ class Vfs_audit::File_system : public Vfs::File_system
return h.audit->fs().ftruncate(h.audit, len); return h.audit->fs().ftruncate(h.audit, len);
} }
bool check_unblock(Vfs_handle *vfs_handle, bool rd, bool wr, bool ex) override
{
Handle &h = *static_cast<Handle*>(vfs_handle);
h.sync_state();
return h.audit->fs().check_unblock(h.audit, rd, wr, ex);
}
void register_read_ready_sigh(Vfs_handle *vfs_handle, Signal_context_capability sigh) override void register_read_ready_sigh(Vfs_handle *vfs_handle, Signal_context_capability sigh) override
{ {
Handle &h = *static_cast<Handle*>(vfs_handle); Handle &h = *static_cast<Handle*>(vfs_handle);

View File

@ -2074,12 +2074,6 @@ class Lwip::File_system final : public Vfs::File_system, public Lwip::Directory
return false; return false;
} }
bool check_unblock(Vfs_handle*, bool, bool, bool) override
{
Genode::error("VFS lwIP: ",__func__," not implemented");
return true;
}
Sync_result complete_sync(Vfs_handle *vfs_handle) override Sync_result complete_sync(Vfs_handle *vfs_handle) override
{ {
return (dynamic_cast<Lwip_file_handle*>(vfs_handle)) return (dynamic_cast<Lwip_file_handle*>(vfs_handle))

View File

@ -730,11 +730,6 @@ class Vfs::Oss_file_system::Data_file_system : public Single_file_system
{ {
return FTRUNCATE_OK; return FTRUNCATE_OK;
} }
bool check_unblock(Vfs_handle *, bool, bool wr, bool) override
{
return wr;
}
}; };

View File

@ -141,17 +141,6 @@ struct Vfs::File_io_service : Interface
return IOCTL_ERR_INVALID; return IOCTL_ERR_INVALID;
} }
/**
* Return true if an unblocking condition of the file is satisfied
*
* \param rd if true, check for data available for reading
* \param wr if true, check for readiness for writing
* \param ex if true, check for exceptions
*/
virtual bool check_unblock(Vfs_handle *, bool /* rd */, bool /* wr */, bool /* ex */)
{ return true; }
virtual void register_read_ready_sigh(Vfs_handle *, Signal_context_capability) virtual void register_read_ready_sigh(Vfs_handle *, Signal_context_capability)
{ } { }

View File

@ -264,11 +264,6 @@ class Vfs::Terminal_file_system::Data_file_system : public Single_file_system
{ {
return FTRUNCATE_OK; return FTRUNCATE_OK;
} }
bool check_unblock(Vfs_handle *, bool rd, bool wr, bool) override
{
return ((rd && _terminal.avail()) || wr);
}
}; };