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

Arno Zeller azeller at openjdk.java.net
Fri Mar 5 11:05:48 UTC 2021


On Mon, 1 Mar 2021 10:00:43 GMT, Arno Zeller <azeller at openjdk.org> wrote:

> FileStore.supportsFileAttributeView might return a wrong value for ext3 mounts. In case of newer Linux distributions the extended attributes are enabled by default for ext3 mounts and do not show up /proc/mounts.
> Currently the mount table is parsed to determine whether the mount options contain user_xattr  or nouser_xattr. In case of neither entry it is expected that extended attributes are not supported on ext3. 
> 
> This change removes the special handling for ext3 and ext4 and will always probe the fs if none of the options above are found. This should ensure that we return the right value.

This pull request has now been integrated.

Changeset: 8d3de4b1
Author:    Arno Zeller <azeller at openjdk.org>
Committer: Christoph Langer <clanger at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/8d3de4b1
Stats:     7 lines in 1 file changed: 0 ins; 6 del; 1 mod

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

Reviewed-by: alanb, clanger, bpb

-------------

PR: https://git.openjdk.java.net/jdk/pull/2778


More information about the nio-dev mailing list