(&mut self, id: TrunkId)
| 90 | } |
| 91 | |
| 92 | fn del_trunk(&mut self, id: TrunkId) -> Result<bool, Self::Error> { |
| 93 | if let Some(trunk) = self.trunks.remove(&id) { |
| 94 | self.path_index.remove(trunk.path()); |
| 95 | self.inode_index.remove(&trunk.inode()); |
| 96 | Ok(true) |
| 97 | } else { |
| 98 | Ok(false) |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | fn update_trunk_state(&mut self, id: TrunkId, state: TrunkState) -> Result<(), Self::Error> { |
| 103 | if let Some(trunk) = self.trunks.get_mut(&id) { |