Skip to content

Commit 61a36f6

Browse files
authored
HDDS-12373. Use File.getUsableSpace() instead of File.getFreeSpace() to calcuate usedSpace in DedicatedDiskSpaceUsage (apache#7927)
1 parent 953e718 commit 61a36f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/fs/DedicatedDiskSpaceUsage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public long getUsedSpace() {
5151
* @return used space
5252
*/
5353
private long calculateUsedSpace() {
54-
return getCapacity() - getFile().getFreeSpace();
54+
return getCapacity() - getFile().getUsableSpace();
5555
}
5656

5757
}

0 commit comments

Comments
 (0)