commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r789623 - /commons/sandbox/runtime/trunk/src/main/native/os/unix/file.c
Date Tue, 30 Jun 2009 08:53:49 GMT
Author: mturk
Date: Tue Jun 30 08:53:49 2009
New Revision: 789623

URL: http://svn.apache.org/viewvc?rev=789623&view=rev
Log:
Use device number in fileId

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/file.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/file.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/file.c?rev=789623&r1=789622&r2=789623&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/file.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/file.c Tue Jun 30 08:53:49 2009
@@ -133,7 +133,7 @@
         struct_stat info;
 
         if ((ex = stat(J2S(pathname), &info)) == 0) {
-            rv = (jlong)info.st_ino;
+            rv = ((jlong)info.st_dev << 32) +  (jlong)info.st_ino;
         }
         else
             ex = ACR_GET_OS_ERROR();



Mime
View raw message