GNU bug report logs - #67490
[PATCH v2] tail: fix tailing sysfs files on large page kernels

Previous Next

Package: coreutils;

Reported by: dann frazier <dann.frazier <at> canonical.com>

Date: Mon, 27 Nov 2023 17:31:02 UTC

Severity: normal

Tags: patch

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 67490 <at> debbugs.gnu.org (full text, mbox):

From: dann frazier <dann.frazier <at> canonical.com>
To: Pádraig Brady <P <at> draigbrady.com>
Cc: 67490 <at> debbugs.gnu.org
Subject: Re: bug#67490: [PATCH] tail: fix following /proc and /sys files when
 using a 64K page size
Date: Wed, 29 Nov 2023 07:34:26 -0700
On Mon, Nov 27, 2023 at 07:10:26PM +0000, Pádraig Brady wrote:
> On 27/11/2023 16:24, dann frazier wrote:
> > * src/tail.c (file_lines): Use fstat() to determine a file's block
> > size and dynamically allocate a buffer of that size for traversing
> > backwards.
> 
> Thanks for the patch.
> Could you describe it a bit more.
> What happens if we use smaller reads?
> Also what about all the other safe_read() calls in tail.c ?

Yes, this warrants more detail - I'll try to capture that in a
comment. Thanks Pádraig!

  -dann




This bug report was last modified 1 year and 175 days ago.

Previous Next


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