GNU bug report logs -
#31184
tail -f on Network FS not refreshing as soon as the file is changed.
Previous Next
Full log
Message #44 received at 31184 <at> debbugs.gnu.org (full text, mbox):
On 04/05/18 08:12, Jewsco Pius Jacquez wrote:
> Thanks, did I missed anything?
>
> [jjacquez <at> cmilsbtest02 ~]$ wget --quiet https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ cksum coreutils-8.29.tar.xz
> 926393761 5286588 coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ tar -xf coreutils-8.29.tar.xz
> [jjacquez <at> cmilsbtest02 ~]$ cd coreutils-8.29/
> [jjacquez <at> cmilsbtest02 coreutils-8.29]$ wget --quiet 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- | patch -R -p1 && make
> patching file NEWS
> Unreversed patch detected! Ignore -R? [n]
> Apply anyway? [n]
> Skipping patch.
> 1 out of 1 hunk ignored -- saving rejects to file NEWS.rej
> patching file src/tail.c
> Hunk #1 FAILED at 1220.
> 1 out of 1 hunk FAILED -- saving rejects to file src/tail.c.rej
> [jjacquez <at> cmilsbtest02 coreutils-8.29]$
>
>
>
> Thanks,
> Jewsco
>
>
>
>
>
> -----Original Message-----
> From: Pádraig Brady [mailto:P <at> draigBrady.com]
> Sent: Thursday, May 3, 2018 8:47 PM
> To: Jewsco Pius Jacquez <JewscoPius.Jacquez <at> Amdocs.com>; 31184 <at> debbugs.gnu.org
> Subject: Re: bug#31184: tail -f on Network FS not refreshing as soon as the file is changed.
>
> On 02/05/18 06:39, Jewsco Pius Jacquez wrote:
>> I tried and the --follow=name doesn't refresh either. The stat output is changing.
>>
>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file
>> append Wed May 2 08:35:54 CDT 2018 append Wed May 2 08:35:54 CDT
>> 2018 append Wed May 2 08:35:54 CDT 2018 append Wed May 2 08:35:54
>> CDT 2018 append Wed May 2 08:35:54 CDT 2018 append Wed May 2
>> 08:35:54 CDT 2018 append Wed May 2 08:35:54 CDT 2018 append Wed May
>> 2 08:35:54 CDT 2018 append Wed May 2 08:35:54 CDT 2018 append Wed May
>> 2 08:35:55 CDT 2018 ^C
>> [jjacquez <at> cmilsbtest03 ~]$ tail --follow=name /media/samba/test.file
>> append Wed May 2 08:36:01 CDT 2018 append Wed May 2 08:36:01 CDT
>> 2018 append Wed May 2 08:36:01 CDT 2018 append Wed May 2 08:36:02
>> CDT 2018 append Wed May 2 08:36:02 CDT 2018 append Wed May 2
>> 08:36:02 CDT 2018 append Wed May 2 08:36:02 CDT 2018 append Wed May
>> 2 08:36:02 CDT 2018 append Wed May 2 08:36:02 CDT 2018 append Wed May
>> 2 08:36:02 CDT 2018 ^C
>> [jjacquez <at> cmilsbtest03 ~]$ while :; do stat -c '%s'
>> /media/samba/test.file; sleep 1; done
>> 1649717
>> 1650077
>> 1650401
>> 1650761
>> 1651121
>> 1651445
>> 1651769
>> 1652093
>> 1652417
>>
>>
>> About the reverting the patch, so I need to download the source and patch it?
>>
>> cd coreutils-8.29 &&
>> wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
>> patch -R -p1 &&
>> make
>
> You'd done that previously, for for completeness yes you need to download the source first like:
>
> wget https://ftpmirror.gnu.org/coreutils/coreutils-8.29.tar.xz
> tar -xf coreutils-8.29.tar.xz
Drats sorry. There were conflicting patches in the meantime.
You can tweak it like:
cd coreutils-8.29 &&
wget 'https://github.com/coreutils/coreutils/commit/7fc7206.patch' -O- |
sed 's/name,/false, name,/' |
patch -p1 -R -t &&
make
cheers,
Pádraig
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.