fix get_disk_id

This commit is contained in:
weisd
2024-09-19 09:41:29 +08:00
parent 60d02f3afd
commit 1f1e73ce08
6 changed files with 85 additions and 54 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ pub trait DiskAPI: Debug + Send + Sync + 'static {
fn is_local(&self) -> bool;
fn path(&self) -> PathBuf;
async fn close(&self) -> Result<()>;
async fn get_disk_id(&self) -> Option<Uuid>;
async fn get_disk_id(&self) -> Result<Option<Uuid>>;
async fn set_disk_id(&self, id: Option<Uuid>) -> Result<()>;
async fn delete(&self, volume: &str, path: &str, opt: DeleteOptions) -> Result<()>;