pub fn new(storage_device: StorageDeviceRef) -> BlockIo {
        let device_ref = storage_device.clone();
        let locked_device = device_ref.lock();
        BlockIo {
            cache: BlockCache::new(storage_device),
            block_size: BlockSize {
                size_in_bytes: locked_device.size_in_bytes(),
                size_in_blocks: locked_device.size_in_sectors(),
                block_size_in_bytes: locked_device.sector_size_in_bytes()
            },
        }
    }
/// Creates a new `BlockIo` device 
Creates a new `BlockIo` device
Creates a new ` BlockIo ` device
pub fn new(storage_device: StorageDeviceRef) -> BlockIo {
        let device_ref = storage_device.clone();
        let locked_device = device_ref.lock();
        BlockIo {
            cache: BlockCache::new(storage_device),
            block_size: BlockSize {
                size_in_bytes: locked_device.size_in_bytes(),
                size_in_blocks: locked_device.size_in_sectors(),
                block_size_in_bytes: locked_device.sector_size_in_bytes()
            },
        }
    }
pub fn new ( storage_device : StorageDeviceRef ) -> BlockIo { let device_ref = storage_device . clone ( ) ; let locked_device = device_ref . lock ( ) ; BlockIo { cache : BlockCache :: new ( storage_device ) , block_size : BlockSize { size_in_bytes : locked_device . size_in_bytes ( ) , size_in_blocks : locked_device . size_in_sectors ( ) , block_size_in_bytes : locked_device . sector_size_in_bytes ( ) } , } }
Creates a new `BlockIo` device
Creates a new ` BlockIo ` device
storage_device
StorageDeviceRef