8317687: (fs) FileStore.supportsFileAttributeView("posix") incorrectly returns 'true' for FAT32 volume on macOS

Reviewed-by: alanb
This commit is contained in:
Brian Burkhalter 2023-10-16 14:49:18 +00:00
parent eb7d972d8a
commit 1a7fd5d419
3 changed files with 35 additions and 6 deletions

View file

@ -142,7 +142,7 @@ class LinuxFileStore
}
return xattrEnabled;
}
// POSIX attributes not supported on FAT
// POSIX attributes not supported on FAT32
if (type == PosixFileAttributeView.class && entry().fstype().equals("vfat"))
return false;
return super.supportsFileAttributeView(type);