GNU bug report logs - #31184
tail -f on Network FS not refreshing as soon as the file is changed.

Previous Next

Package: coreutils;

Reported by: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>

Date: Mon, 16 Apr 2018 17:26:02 UTC

Severity: normal

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>, Erik Auerswald <auerswal <at> unix-ag.uni-kl.de>
Cc: "31184 <at> debbugs.gnu.org" <31184 <at> debbugs.gnu.org>, Pádraig Brady <P <at> draigBrady.com>
Subject: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
Date: Wed, 18 Apr 2018 08:39:19 +0200
On 04/17/2018 08:18 PM, Jewsco Pius Jacquez wrote:
> Yes, it didn't work either.
> 
> The closest is this one(below), but still the update is every second only.
> # tail --follow=name --max-unchanged-stats=1 --sleep-interval=1  /media/samba/test.file

The --sleep-interval option not only accepts integers: see info:

     When using tail without inotify support, you can make
     it more responsive by using a sub-second sleep interval, e.g., via
     an alias like this:

          alias tail='tail -s.1'

>> On 04/17/2018 05:46 PM, Jewsco Pius Jacquez wrote:
>>> [root <at> cmilsbtest03 ~]# stat -f -c '%t %T'  /media/samba/test.file
>>> ff534d42 cifs

But as tail(1) treats CIFS as "remote" [1], there may be some other
effect, e.g. buffering on the CIFS server or on the server writing
to that file.  Are you sure data is available more often?

[1]
https://git.sv.gnu.org/cgit/coreutils.git/tree/src/stat.c?id=e6017741e9#n301

Have a nice day,
Berny




This bug report was last modified 6 years and 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.