pub fn default_block_with_path(path: String) -> Block {
    // Rate limiting is enabled but with a high operation rate (10 million ops/s).
    let rate_limiter = RateLimiter::new(0, 0, 0, 100_000, 0, 10).unwrap();

    let id = "test".to_string();
    // The default block device is read-write and non-root.
    Block::new(
        id,
        None,
        CacheType::Unsafe,
        path,
        false,
        false,
        rate_limiter,
    )
    .unwrap()
}
/// Create a default Block instance using file at the specified path to be used in tests.
Create a default Block instance using file at the specified path to be used in tests.
Create a default Block instance using file at the specified path to be used in tests .
pub fn default_block_with_path(path: String) -> Block {
    // Rate limiting is enabled but with a high operation rate (10 million ops/s).
    let rate_limiter = RateLimiter::new(0, 0, 0, 100_000, 0, 10).unwrap();
    let id = "test".to_string();
    // The default block device is read-write and non-root.
    Block::new(
        id,
        None,
        CacheType::Unsafe,
        path,
        false,
        false,
        rate_limiter,
    )
    .unwrap()
}
pub fn default_block_with_path ( path : String ) -> Block { // Rate limiting is enabled but with a high operation rate (10 million ops/s). let rate_limiter = RateLimiter :: new ( 0 , 0 , 0 , 100_000 , 0 , 10 ) . unwrap ( ) ; let id = " " . to_string ( ) ; // The default block device is read-write and non-root. Block :: new ( id , None , CacheType :: Unsafe , path , false , false , rate_limiter , ) . unwrap ( ) }
Create a default Block instance using file at the specified path to be used in tests.
Create a default Block instance using file at the specified path to be used in tests .
path
String
path
String