Skip to content

Commit

Permalink
Add 'Allocated Space' column in Storage Domains overview
Browse files Browse the repository at this point in the history
Added an 'Allocated Space' column in the Storage Domains overview
  • Loading branch information
BrooklynDewolf authored Mar 14, 2024
2 parents 5e68347 + 21a102a commit 4e31579
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1408,6 +1408,8 @@ public interface ApplicationConstants extends CommonApplicationConstants {

String totalSpaceStorage();

String allocatedSpaceStorage();

String attachDataStorage();

String attachIsoStorage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,15 @@ public SafeHtml getTooltip(StorageDomain object) {
};
getTable().addColumn(confirmedFreeSpaceColumn, constants.confirmedFreeSpaceStorage(), "180px"); //$NON-NLS-1$

AbstractStorageSizeColumn<StorageDomain> allocatedSpaceColumn = new AbstractStorageSizeColumn<StorageDomain>() {
@Override
public Long getRawValue(StorageDomain object) {
Integer allocatedSpace = object.getCommittedDiskSize();
return allocatedSpace == null ? null : Long.valueOf(allocatedSpace);
}
};
getTable().addColumn(allocatedSpaceColumn, constants.allocatedSpaceStorage(), "130px"); //$NON-NLS-1$

AbstractTextColumn<StorageDomain> descriptionColumn = new AbstractTextColumn<StorageDomain>() {
@Override
public String getValue(StorageDomain object) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ freeSpaceDisksTree=Free Space
freeSpaceGBVolumeBrick=Free Space (GB)
freeSpaceStorage=Free Space (GB)
confirmedFreeSpaceStorage=Guaranteed Free Space (GB)
allocatedSpaceStorage=Allocated Space (GB)
confirmedFreeSpaceStorageNonThinTooltip=This storage domain is not thin provisioned, so all free space is available for use.
confirmedFreeSpaceStorageThinTooltip=This storage domain lies on a thin provisioned device, which means that not all of the free space may be available for use; however, you are guaranteed to be able to use at least this amount.
freeStorage=Free Storage
Expand Down

0 comments on commit 4e31579

Please sign in to comment.