Skip to content

Commit

Permalink
8262844: (fs) FileStore.supportsFileAttributeView might return false …
Browse files Browse the repository at this point in the history
…negative in case of ext3

Backport-of: 8d3de4b
  • Loading branch information
GoeLin committed Oct 28, 2021
1 parent 9cc6616 commit 43f27be
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/java.base/linux/classes/sun/nio/fs/LinuxFileStore.java
Expand Up @@ -162,12 +162,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
Expand All @@ -184,7 +178,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);
Expand Down

1 comment on commit 43f27be

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.