pub struct BlobdCfg {
pub backing_store: BlobdCfgBackingStore,
pub expire_incomplete_objects_after_secs: u64,
pub lpage_size_pow2: u8,
pub object_tuples_area_reserved_space: u64,
pub spage_size_pow2: u8,
pub uring_coop_taskrun: bool,
pub uring_defer_taskrun: bool,
pub uring_iopoll: bool,
pub uring_sqpoll: Option<u32>,
}
Fields§
§backing_store: BlobdCfgBackingStore
§expire_incomplete_objects_after_secs: u64
This must be much greater than zero.
lpage_size_pow2: u8
§object_tuples_area_reserved_space: u64
The amount of bytes per partition to reserve for storing object tuples. This can be expanded online later on, but only up to the leftmost heap allocation, so it’s worth setting this to a high value. This will be rounded up to the nearest multiple of the lpage size.
spage_size_pow2: u8
The device must support atomic writes of this size. It’s recommended to use the physical sector size, instead of the logical sector size, for better performance. On Linux, use blockdev --getpbsz /dev/my_device
to get the physical sector size.
uring_coop_taskrun: bool
Advanced options, only change if you know what you’re doing.
uring_defer_taskrun: bool
§uring_iopoll: bool
§uring_sqpoll: Option<u32>
Implementations§
Source§impl BlobdCfg
impl BlobdCfg
pub fn lpage_size(&self) -> u64
pub fn spage_size(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlobdCfg
impl RefUnwindSafe for BlobdCfg
impl Send for BlobdCfg
impl Sync for BlobdCfg
impl Unpin for BlobdCfg
impl UnwindSafe for BlobdCfg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more