Any way to access fstat.st_blocks from Java (UnixFileAttributesView)

Brian Burkhalter brian.burkhalter at oracle.com
Wed Jul 3 14:59:23 UTC 2019


Hi Uwe,

> On Jul 3, 2019, at 7:51 AM, Uwe Schindler <uschindler at apache.org> wrote:
> 
> The question is how to propose a change request like this, because getting the size a file *occupies* on disk is a useful information. Adding this should bring no backwards breaks or any need to change public APIs, as the “unix” view is not exposed as a public API, its just accessible using the lookup by string key. So adding two other key-value pairs should be easy. What do you think?

You already have the Author role so I think you could create an enhancement issue in JBS. The project would be JDK, the component core-libs, and the sub-component java.nio.

> Maybe I can create a patch to add this, but what’s the way to go? This may be a first try to submit something as a “new contributor”, because I have signed the CLA already.

Yes, you could create a patch. Guidelines for contributions are given at [1, 2]. It would probably good to get some agreement on what API elements would be added before spending a lot of time on the implementation.

Thanks,

Brian

[1] http://openjdk.java.net/contribute/
[2] http://openjdk.java.net/guide/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190703/a204c862/attachment.html>


More information about the nio-dev mailing list