Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "Allocated Space" column in Storage Domains overview #928

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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