forked from pool/java-1_8_0-openjdk
This commit is contained in:
33
java-1_8_0-openjdk-linuxfilestore.patch
Normal file
33
java-1_8_0-openjdk-linuxfilestore.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
--- openjdk/jdk/src/solaris/classes/sun/nio/fs/LinuxFileStore.java 2017-08-23 11:40:26.690809603 +0200
|
||||
+++ openjdk/jdk/src/solaris/classes/sun/nio/fs/LinuxFileStore.java 2017-08-23 11:44:28.314815334 +0200
|
||||
@@ -74,20 +74,20 @@
|
||||
} catch (UnixException x) {
|
||||
x.rethrowAsIOException(parent);
|
||||
}
|
||||
- if (attrs.dev() != dev())
|
||||
- break;
|
||||
+ if (attrs.dev() != dev()) {
|
||||
+
|
||||
+ // step 3: lookup mounted file systems (use /proc/mounts to ensure we
|
||||
+ // find the file system even when not in /etc/mtab)
|
||||
+ byte[] dir = path.asByteArray();
|
||||
+ for (UnixMountEntry entry: fs.getMountEntries("/proc/mounts")) {
|
||||
+ if (Arrays.equals(dir, entry.dir()))
|
||||
+ return entry;
|
||||
+ }
|
||||
+ }
|
||||
path = parent;
|
||||
parent = parent.getParent();
|
||||
}
|
||||
|
||||
- // step 3: lookup mounted file systems (use /proc/mounts to ensure we
|
||||
- // find the file system even when not in /etc/mtab)
|
||||
- byte[] dir = path.asByteArray();
|
||||
- for (UnixMountEntry entry: fs.getMountEntries("/proc/mounts")) {
|
||||
- if (Arrays.equals(dir, entry.dir()))
|
||||
- return entry;
|
||||
- }
|
||||
-
|
||||
throw new IOException("Mount point not found");
|
||||
}
|
||||
|
Reference in New Issue
Block a user