[9] RFR of 8081843: (fs) FileStore.getTotalSpace returns unexpected results with >2TB file systems

Brian Burkhalter brian.burkhalter at oracle.com
Thu Jun 11 21:59:44 UTC 2015


On Jun 11, 2015, at 9:22 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:

> On 11/06/2015 17:05, Brian Burkhalter wrote:
>> :
>> Actually the change includes using statfs() and struct statfs instead of statvfs64 and struct statvfs64, respectively. In struct statfs there is no f_frsize field.
>> 
> Ah okay, I read it as statvfs rather than statfs. In that case, it looks good.
> 
> -Alan.

I made the further minor change listed below and would like to include it as well. It suppresses defining the symbol statvfs64 on Mac OS X.

Thanks,

Brian

 #define stat64 stat
+#ifndef MACOSX
 #define statvfs64 statvfs
+#endif
 
 #define open64 open
 #define fstat64 fstat
 #define lstat64 lstat
 #define dirent64 dirent
 #define readdir64_r readdir_r
 #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20150611/7965fde5/attachment.html>


More information about the nio-dev mailing list