Struct nydus::FsCacheHandler
source · pub struct FsCacheHandler { /* private fields */ }
Expand description
Handler to cooperate with Linux fscache driver to manage cached blob objects.
The FsCacheHandler
create a communication channel with the Linux fscache driver, configure
the communication session and serves all requests from the fscache driver.
Implementations§
source§impl FsCacheHandler
impl FsCacheHandler
sourcepub fn new(
path: &str,
dir: &str,
tag: Option<&str>,
blob_cache_mgr: Arc<BlobCacheMgr>,
threads: usize
) -> Result<FsCacheHandler, Error>
pub fn new( path: &str, dir: &str, tag: Option<&str>, blob_cache_mgr: Arc<BlobCacheMgr>, threads: usize ) -> Result<FsCacheHandler, Error>
Create a new instance of FsCacheHandler.
sourcepub fn working_threads(&self) -> usize
pub fn working_threads(&self) -> usize
Get number of working threads to service fscache requests.