Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

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: 8d3de4b1bdb5dc13bb7724596dc2123ba05bbb81
  • Loading branch information
RealCLanger committed Mar 22, 2021
1 parent 34ecf72 commit 62adf83
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 62adf83

@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.