[Toybox] find -newer test intermittent failures.

Rob Landley rob at landley.net
Sun Mar 10 21:30:08 PDT 2019


Between filesystem timestamp granularity being a lot less than the API reports
and ext4 being too clever about transaction batching in the journal or some
such, I occasionally get find.test failures because:

  File: ‘generated/testdir/testdir/dir/fifo’
  Size: 0         	Blocks: 0          IO Block: 4096   fifo
Device: 801h/2049d	Inode: 24912964    Links: 1
Access: (0644/prw-r--r--)  Uid: ( 1000/ landley)   Gid: ( 1000/ landley)
Access: 2019-03-10 23:07:23.752218513 -0500
Modify: 2019-03-10 23:07:23.752218513 -0500
Change: 2019-03-10 23:07:23.752218513 -0500
 Birth: -
  File: ‘generated/testdir/testdir/dir/file’
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: 801h/2049d	Inode: 24912921    Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/ landley)   Gid: ( 1000/ landley)
Access: 2019-03-10 23:07:23.752218513 -0500
Modify: 2019-03-10 23:07:23.752218513 -0500
Change: 2019-03-10 23:07:23.752218513 -0500
 Birth: -
  File: ‘generated/testdir/testdir/dir/link’ -> ‘fifo’
  Size: 4         	Blocks: 0          IO Block: 4096   symbolic link
Device: 801h/2049d	Inode: 24912965    Links: 1
Access: (0777/lrwxrwxrwx)  Uid: ( 1000/ landley)   Gid: ( 1000/ landley)
Access: 2019-03-10 23:07:23.760218430 -0500
Modify: 2019-03-10 23:07:23.752218513 -0500
Change: 2019-03-10 23:07:23.752218513 -0500

I.E. dir/link is not newer than dir/file even though they were created by
different statements in the shell script.

I'm adding a "sleep .1" before the symlink creation to try to fix this, but
lemme know if anybody else sees it. (Maybe it's an ubuntu 14.04 thing, which I'm
having to move off of soon because
https://discourse.ubuntu.com/t/chromium-updates-on-trusty/5905 and
https://www.forbes.com/sites/daveywinder/2019/03/07/google-confirms-serious-chrome-security-problem-heres-how-to-fix-it/
are _kinda_ fighting a little. (Remember: when Ubuntu says LTS will go to such
and such a date, they're lying.)

Oh well, meant to give devuan a try anyway. Too bad the system76 laptop I bought
last year requires martian firmware that's not even in the devuan full DVD image
to do wireless _or_ wired internet. (When system76 says "linux works on our
hardware" they mean with "the customized systemd distro we provide works on this
hardware, expecting anything else to is crazy talk".)

Rob

P.S. If you're expecting a reply to an email I haven't already sent, please
resend. Thunderbird was being really sluggish downloading email again so I did
the usual shift-click select of 6 months of linux-kernel messages and told it to
move them to a subfolder (dunno why folders being big makes it sluggish
downloading, but it does), and since this machine has 16 gigs ram and 8 gigs
swap I didn't do it a month at a time like I used to on the netbook. I should
have known better: after moving the 96k messages thunderbird did whatever crazy
memory-hog thing it always does to update the display, ran through all 16 gigs
of ram _and_ 8 gigs of swap (I'd already done a pkill -f renderer to make chrome
give _its_ memory back), and of course modern Linux has nerfed the OOM killer to
the point where the box locks solid instead of killing the obvious memory hog
task when it finally runs out of memory. So I had to power cycle it, and
thunderbird doesn't remember what reply windows I had open across restarts
anymore...

P.P.S. Is _this_ the Year of Linux on the Desktop, or are we still waiting on
that one?



More information about the Toybox mailing list