8262844: (fs) FileStore.supportsFileAttributeView might return false negative in case of ext3

Reviewed-by: alanb, clanger, bpb
This commit is contained in:
Arno Zeller 2021-03-05 11:02:26 +00:00 committed by Christoph Langer
parent 75fb7ccf34
commit 8d3de4b1bd

View File

@ -141,12 +141,6 @@ class LinuxFileStore
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 @@ class LinuxFileStore
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);