Skip to content

Commit

Permalink
lxd/storage/ceph: Allow online resize of ceph block volumes
Browse files Browse the repository at this point in the history
Signed-off-by: Kadin Sayani <[email protected]>
  • Loading branch information
kadinsayani committed Oct 22, 2024
1 parent 86b38f5 commit 257be7c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lxd/storage/drivers/driver_ceph_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -1383,10 +1383,6 @@ func (d *ceph) SetVolumeQuota(vol Volume, size string, allowUnsafeResize bool, o
if sizeBytes < oldSizeBytes {
return fmt.Errorf("Block volumes cannot be shrunk: %w", ErrCannotBeShrunk)
}

if inUse {
return ErrInUse // We don't allow online resizing of block volumes.
}
}

// Resize block device.
Expand Down

0 comments on commit 257be7c

Please sign in to comment.