Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8262844: (fs) FileStore.supportsFileAttributeView might return false …
…negative in case of ext3

Reviewed-by: alanb, clanger, bpb
  • Loading branch information
ArnoZeller authored and RealCLanger committed Mar 5, 2021
1 parent 75fb7cc commit 8d3de4b1bdb5dc13bb7724596dc2123ba05bbb81
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/java.base/linux/classes/sun/nio/fs/LinuxFileStore.java
@@ -141,12 +141,6 @@ public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type
return false;
}

// user_{no}xattr options not present but we special-case ext3 as
// we know that extended attributes are not enabled by default.
if (entry().fstype().equals("ext3")) {
return false;
}

// user_xattr option not present but we special-case ext4 as we
// know that extended attributes are enabled by default for
// kernel version >= 2.6.39
@@ -163,7 +157,7 @@ public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type
return xattrEnabled;
}

// not ext3/4 so probe mount point
// not ext4 so probe mount point
if (!xattrChecked) {
UnixPath dir = new UnixPath(file().getFileSystem(), entry().dir());
xattrEnabled = isExtendedAttributesEnabled(dir);

0 comments on commit 8d3de4b

Please sign in to comment.