Skip to content

Commit

Permalink
storage: Don't crash when the VFO pool is missing
Browse files Browse the repository at this point in the history
It might be missing temporarily.
  • Loading branch information
mvollmer committed May 8, 2023
1 parent e8a06b4 commit 6d859da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/storaged/lvol-tabs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ export const VDOPoolTab = ({ client, lvol }) => {
const vdo_iface = client.vdo_vols[lvol.path];
const vdo_pool_vol = client.lvols[vdo_iface.VDOPool];

if (!vdo_pool_vol)
return null;

function grow() {
lvol_grow(client, vdo_pool_vol, { });
}
Expand Down

0 comments on commit 6d859da

Please sign in to comment.