(&mut self, id: TrunkId)
| 409 | } |
| 410 | |
| 411 | fn del_trunk(&mut self, id: TrunkId) -> Result<bool, Self::Error> { |
| 412 | if let Some(trunk) = self.trunks.remove(&id) { |
| 413 | self.path_index.remove(trunk.path()); |
| 414 | self.inode_index.remove(&trunk.inode()); |
| 415 | Ok(true) |
| 416 | } else { |
| 417 | Ok(false) |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | fn update_trunk_state( |
| 422 | &mut self, |