Skip to content

Commit 8d3de4b

Browse files
ArnoZellerRealCLanger
authored andcommitted
8262844: (fs) FileStore.supportsFileAttributeView might return false negative in case of ext3
Reviewed-by: alanb, clanger, bpb
1 parent 75fb7cc commit 8d3de4b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/java.base/linux/classes/sun/nio/fs/LinuxFileStore.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,6 @@ public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type
141141
return false;
142142
}
143143

144-
// user_{no}xattr options not present but we special-case ext3 as
145-
// we know that extended attributes are not enabled by default.
146-
if (entry().fstype().equals("ext3")) {
147-
return false;
148-
}
149-
150144
// user_xattr option not present but we special-case ext4 as we
151145
// know that extended attributes are enabled by default for
152146
// kernel version >= 2.6.39
@@ -163,7 +157,7 @@ public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type
163157
return xattrEnabled;
164158
}
165159

166-
// not ext3/4 so probe mount point
160+
// not ext4 so probe mount point
167161
if (!xattrChecked) {
168162
UnixPath dir = new UnixPath(file().getFileSystem(), entry().dir());
169163
xattrEnabled = isExtendedAttributesEnabled(dir);

0 commit comments

Comments
 (0)