blob: 3c6268731afa93fcf0dc144b83670036dab12b45 [file] [log] [blame]
use {
crate::{device::Device, object_store::Filesystem},
anyhow::Error,
remote_block_device::Cache,
std::sync::Arc,
};
pub fn mount(cache: Cache) -> Result<(), Error> {
let device = Arc::new(Device::new(cache));
let fs = Filesystem::open(device)?;
// TODO don't panic if we can't find the default volume
fs.volume("default").unwrap();
// TODO
Ok(())
}