(&mut self, id: TrunkId)
| 402 | } |
| 403 | |
| 404 | fn del_trunk(&mut self, id: TrunkId) -> Result<bool, Self::Error> { |
| 405 | if let Some(trunk) = self.trunks.remove(&id) { |
| 406 | self.path_index.remove(trunk.path()); |
| 407 | self.inode_index.remove(&trunk.inode()); |
| 408 | Ok(true) |
| 409 | } else { |
| 410 | Ok(false) |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | fn update_trunk_state( |
| 415 | &mut self, |