mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8009632: (fs) FileStore.supportsFileAttributeView does not detect user_xattr enabled on ext4
Reviewed-by: alanb
This commit is contained in:
parent
0b24f2acda
commit
7b9950f8cb
1 changed files with 6 additions and 4 deletions
|
@ -140,10 +140,12 @@ class LinuxFileStore
|
||||||
if ((entry().hasOption("user_xattr")))
|
if ((entry().hasOption("user_xattr")))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// user_xattr option not present but we special-case ext3/4 as we
|
// for ext3 and ext4 user_xattr option is enabled by default so
|
||||||
// know that extended attributes are not enabled by default.
|
// check for explicit disabling of this option
|
||||||
if (entry().fstype().equals("ext3") || entry().fstype().equals("ext4"))
|
if (entry().fstype().equals("ext3") ||
|
||||||
return false;
|
entry().fstype().equals("ext4")) {
|
||||||
|
return !entry().hasOption("nouser_xattr");
|
||||||
|
}
|
||||||
|
|
||||||
// not ext3/4 so probe mount point
|
// not ext3/4 so probe mount point
|
||||||
if (!xattrChecked) {
|
if (!xattrChecked) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue