ChenSammi commented on code in PR #7927:
URL: https://github.com/apache/ozone/pull/7927#discussion_r2000321051


##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/fs/AbstractSpaceUsageSource.java:
##########
@@ -86,6 +86,7 @@ public long getAvailable() {
 
   @Override
   public long getCapacity() {
-    return file.getTotalSpace();
+    // system reserve: fsFree - fsUsable
+    return file.getTotalSpace() - (file.getFreeSpace() - 
file.getUsableSpace());

Review Comment:
   Through I understand that there is different between getFreeSpace and 
getUsableSpace, I would suggest not change this, for we would like to know the 
full capacity of the volume. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to