Advance firmware and IOMMU support
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -35,6 +35,14 @@ pub struct FirmwareRegistry {
|
||||
}
|
||||
|
||||
impl FirmwareRegistry {
|
||||
pub fn empty(base_dir: &Path) -> Self {
|
||||
FirmwareRegistry {
|
||||
base_dir: base_dir.to_path_buf(),
|
||||
blobs: HashMap::new(),
|
||||
cache: Arc::new(Mutex::new(HashMap::new())),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(base_dir: &Path) -> Result<Self, BlobError> {
|
||||
if !base_dir.exists() {
|
||||
return Err(BlobError::DirNotFound(base_dir.to_path_buf()));
|
||||
|
||||
Reference in New Issue
Block a user