1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

uucore: set meaningless FsUsage.ffree value to 0

Set the value of the `FsUsage.ffree` value to 0 on Windows, because
even though it is meaningless, it should not exceed the
`FsUsage.files` value so that client code can rely on the guarantee
that `FsUsage.ffree <= FsUsage.files`.
This commit is contained in:
Jeffrey Finkelstein 2022-02-06 21:52:44 -05:00
parent 1f7c08d87b
commit 44772a8dbb

View file

@ -567,7 +567,7 @@ impl FsUsage {
// Total number of file nodes (inodes) on the file system.
files: 0, // Not available on windows
// Total number of free file nodes (inodes).
ffree: 4096, // Meaningless on Windows
ffree: 0, // Meaningless on Windows
}
}
}