# HG changeset patch # User Phillip Schichtel # Date 1522553069 -7200 # Sun Apr 01 05:24:29 2018 +0200 # Node ID b9bb7cd1be291789e1a7a16f8187c06cd3e25997 # Parent b09e56145e11874abc61ce67da7e99b1f3851a28 [PATCH] 9053193: Remove the ext3/ext4 special case from supportsFileAttributeView The implementation of FileStore.supportsFileAttributeView for linux still incorrectly assumes that ext3 and ext4 don't support user_xattr and skips the filesystem probe using fgetxattr. On recent kernels this prevents any application from using extended user attributes without special configuration (fstypes.properties) or reflection. This patch removes this assumption and let's the implementation continue on with properly probing the file system for support. diff -r b09e56145e11 -r b9bb7cd1be29 src/java.base/linux/classes/sun/nio/fs/LinuxFileStore.java --- a/src/java.base/linux/classes/sun/nio/fs/LinuxFileStore.java Thu Mar 08 04:23:31 2018 +0000 +++ b/src/java.base/linux/classes/sun/nio/fs/LinuxFileStore.java Sun Apr 01 05:24:29 2018 +0200 @@ -131,12 +131,7 @@ if ((entry().hasOption("user_xattr"))) return true; - // user_xattr option not present but we special-case ext3/4 as we - // know that extended attributes are not enabled by default. - if (entry().fstype().equals("ext3") || entry().fstype().equals("ext4")) - return false; - - // not ext3/4 so probe mount point + // probe mount point if (!xattrChecked) { UnixPath dir = new UnixPath(file().getFileSystem(), entry().dir()); xattrEnabled = isExtendedAttributesEnabled(dir);