summaryrefslogtreecommitdiff
path: root/src/proto.rs
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2021-12-29 04:56:41 -0600
committerAlejandro Soto <alejandro@34project.org>2021-12-29 05:20:49 -0600
commit48efcd0ce8c8a9ac51dc80c6ec49c63f6694b031 (patch)
treebdb330a1bb59958ca914be40c906112d25b1eb39 /src/proto.rs
parent606846f23726c3472e6e12b17447b102ad6158cc (diff)
Implement buffered readdir
Diffstat (limited to '')
-rw-r--r--src/proto.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/proto.rs b/src/proto.rs
index 7ef3415..1ef33a5 100644
--- a/src/proto.rs
+++ b/src/proto.rs
@@ -9,11 +9,13 @@ use std::{convert::TryFrom, ffi::CStr, fmt};
use crate::{util::display_or, FuseError, FuseResult};
pub const ROOT_ID: u64 = 1;
-pub const MIN_READ_SIZE: usize = 8192;
pub const MAJOR_VERSION: u32 = 7;
pub const TARGET_MINOR_VERSION: u32 = 32;
pub const REQUIRED_MINOR_VERSION: u32 = 31;
+pub const MIN_READ_SIZE: usize = 8192;
+pub const DIRENT_ALIGNMENT_BITS: usize = 3;
+
pub trait Structured<'o>: Sized {
fn split_from(bytes: &'o [u8], header: &InHeader, last: bool) -> FuseResult<(Self, &'o [u8])>;