-
Bug
-
Resolution: Fixed
-
P4
-
11, 16, 17
-
b13
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8263957 | 16.0.2 | Christoph Langer | P4 | Resolved | Fixed | b01 |
JDK-8278202 | 11.0.15-oracle | Ravi Reddy | P4 | Resolved | Fixed | b01 |
JDK-8276090 | 11.0.14 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
I attached a short program to check this. Here is an example output:
># bin/java TestUDFAV /priv/
FileSystemProvider: sun.nio.fs.LinuxFileSystemProvider@764c12b6
FileStore.supportsFileAttributeView says: false
UserDefinedFileAttributeView: sun.nio.fs.LinuxUserDefinedFileAttributeView@33909752
UserDefinedFileAttributeView.list() returned []
UserDefinedFileAttributeView.write("user.test", ...)
UserDefinedFileAttributeView.list() returned [user.test]
># cat /proc/mounts
...
/dev/mapper/vg_a-lv_prod /prod ext3 rw,relatime,data=ordered 0 0
...
The behavior was already adjusted to some corner cases several times. I am not sure why there is a special handling for ext3/4 to not call the real check isExtendedAttributesEnabled(dir) for these two file systems. I guess it is for performance reasons, but on the other hand this might not be called with high frequency and it seems to be cached.
I would suggest to skip the special handling for ext3 in LinuxFileStore.java and probe to be sure what is really enabled.
- backported by
-
JDK-8263957 (fs) FileStore.supportsFileAttributeView might return false negative in case of ext3
- Resolved
-
JDK-8276090 (fs) FileStore.supportsFileAttributeView might return false negative in case of ext3
- Resolved
-
JDK-8278202 (fs) FileStore.supportsFileAttributeView might return false negative in case of ext3
- Resolved
- relates to
-
JDK-8206448 (fs) Extended attributes assumed to be enabled on ext3 (lnx)
- Closed
-
JDK-8009632 (fs) FileStore.supportsFileAttributeView does not detect user_xattr enabled on ext4
- Closed
- links to
-
Commit openjdk/jdk11u-dev/43f27bef
-
Commit openjdk/jdk16u/62adf831
-
Commit openjdk/jdk/8d3de4b1
-
Review openjdk/jdk11u-dev/563
-
Review openjdk/jdk16u/80
-
Review openjdk/jdk/2778