Proposal for adding O_DIRECT support into JDK 9
Lu, Yingqi
yingqi.lu at intel.com
Mon Sep 11 18:16:34 UTC 2017
Hi Alan/Brian,
Here is a draft of the description. Please let me know if this is sufficient.
/**
* FileStore typically organizes storage into number of blocks. A block is
* the smallest storage unit of the file store. Every read and write
* operations are done on a multiple of blocks.
*
* @implSpec The implementation in this class throws an
* {@code UnsupportedOperationException}.
*
* @return the block size of this file store, in bytes
*
* @throws IOException
* if an I/O error occurs
*
* @throws UnsupportedOperationException
* if operation is not supported
*
* @since 10
*/
Thanks,
Lucy
From: Alan Bateman [mailto:Alan.Bateman at oracle.com]
Sent: Monday, September 11, 2017 4:34 AM
To: Lu, Yingqi <yingqi.lu at intel.com>; Brian Burkhalter <brian.burkhalter at oracle.com>
Cc: nio-dev at openjdk.java.net
Subject: Re: Proposal for adding O_DIRECT support into JDK 9
On 08/09/2017 21:41, Lu, Yingqi wrote:
Hi Brian,
Please find the most recent version of the patch at http://cr.openjdk.java.net/~kkharbas/8164900/webrev.09/<http://cr.openjdk.java.net/%7Ekkharbas/8164900/webrev.09/>
One additional comment on FileStore::getBlockSize. We haven't defined the notion of "block" anywhere so I think we need to add some wording to this method to explain that FileStore will typically organized storage into blocks. One or two sentences should be enough.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20170911/8bb1e0b8/attachment-0001.html>
More information about the nio-dev
mailing list