Re: tailf, really needed?

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

 



On 13/03/15 09:00, Ruediger Meier wrote:
> Hi,
> 
> As far as I understood tailf's advantage over "tail -f" is that it does 
> not access the file when it does not grow. But nowadays 
> coreutils "tail -f" also does not seem to access the file. So do we 
> really need tailf?
> 
> The point is that I've noticed that our tailf fails to deal with 
> filesystems where inotify is broken. For example it does not work for 
> overlayfs. coreutils tail code looks quite complicated and seems to 
> manage such cases. Is it worth to fix our tailf or better just remove 
> it and use "tail -f"?
> 
> BTW coreutils tail is much more comfortable. It has many important 
> options. For example watching log files without -F or --retry does not 
> make sense to me (because of logrotate).
> 
> Last but not least, is anybody using tailf at all? Google does not find 
> much about people who are using this.

tailf is a strange one. If there was an issue with tail(1) accessing
the files, then why not fix it? In any case it seems without inotify
that tailf(1) does access the file?

  nanosleep({0, 250000000}, NULL)         = 0
  open("file", O_RDONLY)    = 3
  fstat(3, {st_mode=S_IFREG|0664, st_size=7048, ...}) = 0
  close(3)

while tail -f does not:

  nanosleep({0, 1000000000}, NULL)         = 0
  fstat(3, {st_mode=S_IFREG|0664, st_size=7048, ...}) = 0

debian codesearch turned up just a single user in a test:
http://sources.debian.net/src/atheist/0.20110402-2/test/conditions/process-running.test/?hl=5#L5

A deprecation warning makes sense to me.

cheers,
Pádraig.
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux