Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose optimized fsverity interface to Rust
On the C side we have two functions: - `lcfs_compute_fsverity_from_fd` - `lfs_fd_get_fsverity` The first is currently defined to operate purely in memory. The second checks if fsverity is already enabled on the fd, and if so just asks the kernel for it; falling back to the first case otherwise. I'm actually not entirely sure if we really need both; it seems like if we have a fd we'd basically always want to use the kernel code if possible. Out of conservatism for now, expose both on the composefs-sys Rust binding side. But on the high level interface just change what we're using to be backed by `lcfs_fd_get_fsverity()`. If someone really cares later of course we can add sugar for the pure compute path in the high level Rust API too. Signed-off-by: Colin Walters <[email protected]>
- Loading branch information