Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: earmv7hf test status, specifically utimensat



Martin Husemann <martin%duskware.de@localhost> writes:

> On Thu, Aug 30, 2018 at 10:25:54AM -0400, Greg Troxel wrote:
>> 2) On the same RPI3 that failed bup tests, our atf tests fail
>> 
>>   usr/tests/lib/libc/c063 > atf-run ./t_utimensat | atf-report
>>   Tests root: /usr/tests/lib/libc/c063
>> 
>>   ./t_utimensat (1/1): 7 test cases
>>       utimensat_fd: [0.007541s] Failed: /home/n0/gdt/NetBSD-8/src/tests/lib/libc/c063/t_utimensat.c:78: st.st_atimespec.tv_sec == tptr[0].tv_sec not met
>>       utimensat_fdcwd: [0.006916s] Failed: /home/n0/gdt/NetBSD-8/src/tests/lib/libc/c063/t_utimensat.c:103: st.st_atimespec.tv_sec == tptr[0].tv_sec not met
>>       utimensat_fdcwderr: [0.006623s] Passed.
>>       utimensat_fderr1: [0.006826s] Passed.
>>       utimensat_fderr2: [0.007021s] Passed.
>>       utimensat_fderr3: [0.006694s] Passed.
>>       utimensat_fdlink: [0.007133s] Failed: /home/n0/gdt/NetBSD-8/src/tests/lib/libc/c063/t_utimensat.c:195: st.st_atimespec.tv_sec == tptr[0].tv_sec not met
>>   [0.055688s]
>
> Those all work for me, with FFS on SATA disk. What file system are you using?

Thanks - that turned out to be almos the right question, which I now
know to be "is your fs mounted noatime?".

It turns out the system I found this on was....  mounted noatime, just
like the install image does by default.  I had not set up tmpfs, even
though I usually do.

Adding a tmpfs makes the test pass.

Also, when I said lockup, what really happened was that the system was
running but the usb wifi interface wedged:

  Aug 30 11:00:20 rpi3 /netbsd: urtwn0: timeout waiting for firmware readiness


(Thanks to gson@ for explaining why the tests fail; that's unfortunate.)

So, I guess this leaves two questions:

  obviously noatime is about not breaking uSD cards, but I wonder if
  that's still necessary with modern cards?

  the rpi3 image seems to default to noatime, and  I wonder if that
  should continue to be, given the balance of saving wear and oddness

  I wonder if calling utimensat (and similar) on a file that's on a
  noatime fs should results in EROFS, or if noatime is supposed to be a
  silent discarding

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index