[RFC] JDK-8162520: (fs) FileStore should support file stores with > Long.MAX_VALUE capacity

Alan Bateman Alan.Bateman at oracle.com
Sat Sep 28 16:07:07 UTC 2019


On 27/09/2019 22:02, Brian Burkhalter wrote:
> :
>
> 1. Return the number of blocks of each type
>
> long getTotalBlocks();
> long getUnallocatedBlocks();
> long getUsableBlocks();
>
> The respective sizes in whichever units can then be computed by the 
> caller using the value returned  by getBlockSize().
This option does fit with the recently added getBlockSize, I just wonder 
if 2^63 blocks is enough. The native APIs seem to allow up to 2^64 
(unsigned).

-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190928/06dce5a0/attachment.html>


More information about the nio-dev mailing list