Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Remove the allocate function.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Dec 8, 2022
1 parent 829e821 commit d2665f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
9 changes: 0 additions & 9 deletions host/src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ impl wasi_filesystem::WasiFilesystem for WasiCtx {
todo!()
}

fn fallocate(
&mut self,
fd: wasi_filesystem::Descriptor,
offset: u64,
len: u64,
) -> HostResult<(), wasi_filesystem::Errno> {
todo!()
}

fn datasync(
&mut self,
fd: wasi_filesystem::Descriptor,
Expand Down
12 changes: 0 additions & 12 deletions wit/wasi.wit
Original file line number Diff line number Diff line change
Expand Up @@ -512,18 +512,6 @@ interface wasi-filesystem {
advice: advice
) -> result<_, errno>

/// Force the allocation of space in a file.
///
/// Note: This is similar to `posix_fallocate` in POSIX.
fallocate: func(
/// The resource to operate on.
fd: descriptor,
/// The offset at which to start the allocation.
offset: filesize,
/// The length of the area that is allocated.
len: filesize
) -> result<_, errno>

/// Synchronize the data of a file to disk.
///
/// Note: This is similar to `fdatasync` in POSIX.
Expand Down

0 comments on commit d2665f1

Please sign in to comment.