1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

impl<'a, 'c> JournalSyscallPlayer<'a, 'c> {
    #[allow(clippy::result_large_err)]
    pub(crate) unsafe fn action_fd_allocate(
        &mut self,
        fd: Fd,
        offset: Filesize,
        len: Filesize,
    ) -> Result<(), WasiRuntimeError> {
        tracing::trace!(%fd, %offset, %len, "Replay journal - FdAllocate");
        JournalEffector::apply_fd_allocate(&mut self.ctx, fd, offset, len)
            .map_err(anyhow_err_to_runtime_err)?;
        Ok(())
    }
}