6815768: File.getxxxSpace() methods fail for very large file systems under 32bit Java
authoralanb
Sat, 27 Feb 2010 19:26:59 +0000
changeset 4981 3a3f498acc86
parent 4980 bbfb5ddd9e58
child 4982 8e7376ac6830
6815768: File.getxxxSpace() methods fail for very large file systems under 32bit Java Reviewed-by: ohair
jdk/src/solaris/native/java/io/UnixFileSystem_md.c
--- a/jdk/src/solaris/native/java/io/UnixFileSystem_md.c	Sat Feb 27 19:15:28 2010 +0000
+++ b/jdk/src/solaris/native/java/io/UnixFileSystem_md.c	Sat Feb 27 19:26:59 2010 +0000
@@ -414,9 +414,9 @@
     jlong rv = 0L;
 
     WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) {
-        struct statvfs fsstat;
-        memset(&fsstat, 0, sizeof(struct statvfs));
-        if (statvfs(path, &fsstat) == 0) {
+        struct statvfs64 fsstat;
+        memset(&fsstat, 0, sizeof(fsstat));
+        if (statvfs64(path, &fsstat) == 0) {
             switch(t) {
             case java_io_FileSystem_SPACE_TOTAL:
                 rv = jlong_mul(long_to_jlong(fsstat.f_frsize),