RFR: 8353053: (fs) Add support for UserDefinedFileAttributeView on AIX [v2]

Varada M varadam at openjdk.org
Thu Apr 3 07:27:55 UTC 2025


On Thu, 27 Mar 2025 13:19:07 GMT, Varada M <varadam at openjdk.org> wrote:

>> In AIX, the JFS2 supports extended attributes which has fgetea, fsetea, flistea, femoveea APIs support fetching, setting, listing and removing extended attributes. 
>> 
>> JBS: [JDK-8353053](https://bugs.openjdk.org/browse/JDK-8353053)
>
> Varada M has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
> 
>  - Merge branch 'openjdk:master' into basic.java
>  - UserDefinedFileAttributeView not supported on AIX
>  - UserDefinedFileAttributeView not supported on AIX
>  - UserDefinedFileAttributeView not supported on AIX
>  - UserDefinedFileAttributeView for AIX

The initial behavior:
`The test test/jdk/java/nio/file/attribute/UserDefinedFileAttributeView/Basic.java` passes with the output UserDefinedFileAttributeView not supported - skip test. This happens because AIX does not have the necessary code changes to support UserDefinedFileAttributeView, and by default, extended attributes (EA) are disabled, returning false for AIX.

With the addition of UserDefinedFileAttributeView support:

If EA is enabled on the system, the test runs successfully without being skipped.
If EA is disabled, the test behaves as before, skipping with the same output.
To ensure the test runs correctly, EA needs to be set to version 2 on AIX for the /tmp directory where the test file is created.

Could you check whether EA is enabled on your system?

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

PR Comment: https://git.openjdk.org/jdk/pull/24276#issuecomment-2774726050


More information about the nio-dev mailing list