[PATCH] tst: Add test for utime
Lukasz Majewski
lukma@denx.de
Thu Mar 4 16:31:47 GMT 2021
Hi Florian, Arjun,
> * Arjun Shankar:
>
> > Hi Lukasz,
> >
> >> This patch provides test for utime. It uses xfstat() syscall to
> >> read access and modification times to compare with ones written by
> >> utime.
> >>
> >> Moreover, access and modification times beyond the Y2038 threshold
> >> date (i.e. 32 bit time_t overflow) are also checked.
> >
> > It seems that this and the utimes/futimens tests fail on machines
> > where /tmp is XFS, where they run into a y2038 bug [1].
> >
> > I am wondering if there's a way around this, like maybe using a
> > loop mount inside a container? I don't know if that's possible/easy
> > using the container tests infrastructure, but it is the first thing
> > that comes to my mind.
>
> If tmpfs is known to work, using /dev/shm instead may be an option.
>
I must admit that I've only tested this test with /tmp mounted as tmpfs.
As Florian pointed out - maybe /dev/shm would be an option...
> Thanks,
> Florian
>
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20210304/412f2861/attachment-0001.sig>
More information about the Libc-alpha
mailing list