RFR: 8341881: [REDO] java/nio/file/attribute/BasicFileAttributeView/CreationTime.java#tmp fails on alinux3

Brian Burkhalter bpb at openjdk.org
Fri Oct 11 17:09:11 UTC 2024


On Fri, 11 Oct 2024 03:14:40 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> On alinux3(alibaba cloud linux version 3) system, the /tmp disk partition is mounted as tmpfs filesystem type, this filesystem type doesn't support create time(birth time).
> This PR is a REDO PR of https://github.com/openjdk/jdk/pull/20687, the diffrent is delete `#include <linux/fcntl.h>` and add `#define AT_SYMLINK_NOFOLLOW 0x100` `#define AT_FDCWD -100`, because the linux header `<linux/fcntl.h>` file can't work on centos6.
> If anyone at Oracle can help me verify this PR, which include build and jtreg tier1 test, I will be quite appreciate for that.
> 
> Additional testing:
> 
> - [x] build and test on alinux3
> - [x] compile libCreationTimeHelper.c in centos6 docker container

> This PR is a REDO PR of #20687, the diffrent is delete `#include <linux/fcntl.h>` and add `#define AT_SYMLINK_NOFOLLOW 0x100` `#define AT_FDCWD -100`, because the linux header `<linux/fcntl.h>` file can't work on centos6.

The diff of diffs is this:

> @@ -0,0 +1,122 @@
202d201
< +#include <linux/fcntl.h>
216a216,221
> +#ifndef AT_SYMLINK_NOFOLLOW
> +#define AT_SYMLINK_NOFOLLOW 0x100
> +#endif
> +#ifndef AT_FDCWD
> +#define AT_FDCWD -100
> +#endif


> If anyone at Oracle can help me verify this PR, which include build and jtreg tier1 test, I will be quite appreciate for that.

In progress.

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

PR Comment: https://git.openjdk.org/jdk/pull/21462#issuecomment-2407812101


More information about the nio-dev mailing list