Skip to content

Commit 43f27be

Browse files
committed
8262844: (fs) FileStore.supportsFileAttributeView might return false negative in case of ext3
Backport-of: 8d3de4b
1 parent 9cc6616 commit 43f27be

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
@@ -162,12 +162,6 @@ public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type
162162
return false;
163163
}
164164

165-
// user_{no}xattr options not present but we special-case ext3 as
166-
// we know that extended attributes are not enabled by default.
167-
if (entry().fstype().equals("ext3")) {
168-
return false;
169-
}
170-
171165
// user_xattr option not present but we special-case ext4 as we
172166
// know that extended attributes are enabled by default for
173167
// kernel version >= 2.6.39
@@ -184,7 +178,7 @@ public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type
184178
return xattrEnabled;
185179
}
186180

187-
// not ext3/4 so probe mount point
181+
// not ext4 so probe mount point
188182
if (!xattrChecked) {
189183
UnixPath dir = new UnixPath(file().getFileSystem(), entry().dir());
190184
xattrEnabled = isExtendedAttributesEnabled(dir);

0 commit comments

Comments
 (0)