From unknown Sat Sep 13 02:39:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9812 <9812@debbugs.gnu.org> To: bug#9812 <9812@debbugs.gnu.org> Subject: Status: Problem with "tail -f" on GPFS filesystem // coreutils package Reply-To: bug#9812 <9812@debbugs.gnu.org> Date: Sat, 13 Sep 2025 09:39:40 +0000 retitle 9812 Problem with "tail -f" on GPFS filesystem // coreutils package reassign 9812 coreutils submitter 9812 Martial-externe BORNET severity 9812 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 12:20:15 2011 Received: (at submit) by debbugs.gnu.org; 20 Oct 2011 16:20:15 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGvLq-0008Vh-KK for submit@debbugs.gnu.org; Thu, 20 Oct 2011 12:20:15 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGu15-0006Uh-Ga for submit@debbugs.gnu.org; Thu, 20 Oct 2011 10:54:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGtzr-00038e-PX for submit@debbugs.gnu.org; Thu, 20 Oct 2011 10:53:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:42950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGtzr-00038U-Nu for submit@debbugs.gnu.org; Thu, 20 Oct 2011 10:53:27 -0400 Received: from eggs.gnu.org ([140.186.70.92]:35500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGtzq-0007uY-Mn for bug-coreutils@gnu.org; Thu, 20 Oct 2011 10:53:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGtzp-00037R-0O for bug-coreutils@gnu.org; Thu, 20 Oct 2011 10:53:26 -0400 Received: from mtagate3.edf.fr ([192.196.142.11]:5453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGtzo-00030i-RF for bug-coreutils@gnu.org; Thu, 20 Oct 2011 10:53:24 -0400 X-IronPort-AV: E=Sophos;i="4.69,379,1315173600"; d="scan'208";a="67500983" Content-Type: multipart/mixed; boundary="===============0969367466==" MIME-Version: 1.0 Received: from unknown (HELO pcyzb03v.notes.edfgdf.fr) ([192.196.9.98]) by PCYF1MTA3.edf.fr with ESMTP; 20 Oct 2011 16:49:48 +0200 To: bug-coreutils@gnu.org, meskes@debian.org Subject: Problem with "tail -f" on GPFS filesystem // coreutils package MIME-Version: 1.0 X-KeepSent: 189B929E:C867D082-C125792F:004FDACF; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 7.0.2 HF800 August 22, 2007 From: Martial-externe BORNET Message-ID: Date: Thu, 20 Oct 2011 16:52:15 +0200 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 20 Oct 2011 12:20:13 -0400 Cc: Laurent LE-SAOUT , Antonio-externe RUSSO , marc_millot@fr.ibm.com, Loic-externe LAUREOTE , Dominique PERRUCHON , Remi PALANCHER , Christian SOBRADO , Stephan GORGET , Bruno-externe AGNERAY X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) --===============0969367466== MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_alternative 0051AFD9C125792F_=" --=_alternative 0051AFD9C125792F_= Content-Type: text/plain; charset="US-ASCII" Good afternoon, Could you please add the following line to the src/fs.h file : # define S_MAGIC_GPFS 0x47504653 and add the following line to the switch() of the fremote() function in the src/tail.c file, in the coreutils package : case S_MAGIC_GPFS: or do you prefer me to send you a patch for these files ? (I'm not used to that yet, but I'll do it if you need it). These addings fix a "tail -f" problem with the GPFS filesystem. I'm waiting for your reply. Thank you for your help regarding this fix. Kind regards, Martial Bornet --=_alternative 0051AFD9C125792F_= Content-Type: text/html; charset="US-ASCII"
Good afternoon,

Could you please add the following line to the src/fs.h file :

# define S_MAGIC_GPFS 0x47504653

and add the following line to the switch() of the fremote() function in the src/tail.c file, in the coreutils package :

case S_MAGIC_GPFS:

or do you prefer me to send you a patch for these files ? (I'm not used to that yet, but I'll do it if you need it).

These addings fix a "tail -f" problem with the GPFS filesystem.

I'm waiting for your reply.
Thank you for your help regarding this fix.

Kind regards,

Martial Bornet
--=_alternative 0051AFD9C125792F_=-- --===============0969367466== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Ce message et toutes les pi=C3=A8ces jointes (ci-apr=C3=A8s le 'Message') s= ont =C3=A9tablis =C3=A0 l'intention exclusive des destinataires et les info= rmations qui y figurent sont strictement confidentielles. Toute utilisation= de ce Message non conforme =C3=A0 sa destination, toute diffusion ou toute= publication totale ou partielle, est interdite sauf autorisation expresse. Si vous n'=C3=AAtes pas le destinataire de ce Message, il vous est interdit= de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou= partie. Si vous avez re=C3=A7u ce Message par erreur, merci de le supprime= r de votre syst=C3=A8me, ainsi que toutes ses copies, et de n'en garder auc= une trace sur quelque support que ce soit. Nous vous remercions =C3=A9galem= ent d'en avertir imm=C3=A9diatement l'exp=C3=A9diteur par retour du message. Il est impossible de garantir que les communications par messagerie =C3=A9l= ectronique arrivent en temps utile, sont s=C3=A9curis=C3=A9es ou d=C3=A9nu= =C3=A9es de toute erreur ou virus. ____________________________________________________ This message and any attachments (the 'Message') are intended solely for th= e addressees. The information contained in this Message is confidential. An= y use of information contained in this Message not in accord with its purpo= se, any dissemination or disclosure, either whole or partial, is prohibited= except formal approval. If you are not the addressee, you may not copy, forward, disclose or use an= y part of it. If you have received this message in error, please delete it = and all copies from your system and notify the sender immediately by return= message. E-mail communication cannot be guaranteed to be timely secure, error or vir= us-free. --===============0969367466==-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 20 14:37:42 2011 Received: (at 9812-done) by debbugs.gnu.org; 20 Oct 2011 18:37:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGxUr-0003HR-BP for submit@debbugs.gnu.org; Thu, 20 Oct 2011 14:37:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RGxPB-00039B-Ht for 9812-done@debbugs.gnu.org; Thu, 20 Oct 2011 14:31:50 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9KIUWNC025205 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 20 Oct 2011 14:30:33 -0400 Received: from [10.3.113.7] ([10.3.113.7]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p9KIUSKZ005959 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Oct 2011 14:30:29 -0400 Message-ID: <4EA06886.6090208@draigBrady.com> Date: Thu, 20 Oct 2011 19:29:26 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 To: Martial-externe BORNET Subject: Re: bug#9812: Problem with "tail -f" on GPFS filesystem // coreutils package References: In-Reply-To: X-Enigmail-Version: 1.3.2 Content-Type: text/plain; charset=UTF-8 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id p9KIUWNC025205 X-Spam-Score: -9.1 (---------) X-Debbugs-Envelope-To: 9812-done X-Mailman-Approved-At: Thu, 20 Oct 2011 14:37:40 -0400 Cc: meskes@debian.org, Laurent LE-SAOUT , Antonio-externe RUSSO , marc_millot@fr.ibm.com, Loic-externe LAUREOTE , 9812-done@debbugs.gnu.org, Remi PALANCHER , Christian SOBRADO , Dominique PERRUCHON , Stephan GORGET , Bruno-externe AGNERAY X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.0 (---------) On 10/20/2011 03:52 PM, Martial-externe BORNET wrote: > Good afternoon, >=20 > Could you please add the following line to the src/fs.h file : >=20 > # define S_MAGIC_GPFS 0x47504653 That was actually done in the recently released 8.13 >=20 > and add the following line to the switch() of the fremote() function in= =20 > the src/tail.c file, in the coreutils package : >=20 > case S_MAGIC_GPFS: >=20 > or do you prefer me to send you a patch for these files ? (I'm not used= to=20 > that yet, but I'll do it if you need it). >=20 > These addings fix a "tail -f" problem with the GPFS filesystem. >=20 > I'm waiting for your reply. > Thank you for your help regarding this fix. Since you took the time to identify the fix I'm applying this in your name. Please advise if you'd like a different email address. Note one can work around the issue without a patch for the moment by using the currently undocumented ---disable-inotify opt= ion. cheers, P=C3=A1draig. commit c0ca70013d7bbe60143910828e32146f3e94cc02 Author: Martial Bornet Date: Thu Oct 20 19:22:31 2011 +0100 tail: fix --follow on GPFS remote file systems * src/tail.c (fremote): Recognize GPFS as a remote file system outside the scope of inotify. diff --git a/src/tail.c b/src/tail.c index f315776..1641a12 100644 --- a/src/tail.c +++ b/src/tail.c @@ -904,6 +904,7 @@ fremote (int fd, const char *name) case S_MAGIC_FUSEBLK: case S_MAGIC_FUSECTL: case S_MAGIC_GFS: + case S_MAGIC_GPFS: case S_MAGIC_KAFS: case S_MAGIC_LUSTRE: case S_MAGIC_NCP: From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 21 02:07:43 2011 Received: (at 9812-done) by debbugs.gnu.org; 21 Oct 2011 06:07:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH8Gd-0002Ef-9T for submit@debbugs.gnu.org; Fri, 21 Oct 2011 02:07:43 -0400 Received: from mtagate4.edf.fr ([192.196.142.14]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RH86g-000209-Hx for 9812-done@debbugs.gnu.org; Fri, 21 Oct 2011 01:57:29 -0400 X-IronPort-AV: E=Sophos;i="4.69,383,1315173600"; d="scan'208,217";a="88095588" Received: from unknown (HELO pcyzb03v.notes.edfgdf.fr) ([192.196.9.98]) by PCYF1MTA4.edf.fr with ESMTP; 21 Oct 2011 07:51:25 +0200 In-Reply-To: <4EA06886.6090208@draigBrady.com> To: P@draigBrady.com Subject: Re: bug#9812: Problem with "tail -f" on GPFS filesystem // coreutils package MIME-Version: 1.0 X-KeepSent: 15C83D2C:468528E0-C1257930:00202BD2; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 7.0.2 HF800 August 22, 2007 From: Martial-externe BORNET Message-ID: Date: Fri, 21 Oct 2011 07:56:06 +0200 Content-Type: multipart/alternative; boundary="=_alternative 00209A0CC1257930_=" X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 9812-done X-Mailman-Approved-At: Fri, 21 Oct 2011 02:07:41 -0400 Cc: meskes@debian.org, laurent.le-saout@edf.fr, antonio-externe.russo@edf.fr, marc_millot@fr.ibm.com, loic-externe.laureote@edf.fr, dominique.perruchon@edf.fr, remi.palancher@edf.fr, christian.sobrado@edf.fr, 9812-done@debbugs.gnu.org, stephan.gorget@edf.fr, bruno-externe.agneray@edf.fr X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Message en plusieurs parties au format MIME --=_alternative 00209A0CC1257930_= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Thank you for your quick answer. I had discovered the ---disable-inotify option, but some users may have=20 scripts they don't want to modify, so we'd prefer not to use it. Thanks a lot anyway. Best regards. Martial Bornet P@draigBrady.com=20 20/10/2011 20:30 A martial-externe.bornet@edf.fr cc 9812-done@debbugs.gnu.org, meskes@debian.org, laurent.le-saout@edf.fr,=20 antonio-externe.russo@edf.fr, marc_millot@fr.ibm.com,=20 loic-externe.laureote@edf.fr, dominique.perruchon@edf.fr,=20 remi.palancher@edf.fr, christian.sobrado@edf.fr, stephan.gorget@edf.fr,=20 bruno-externe.agneray@edf.fr Objet Re: bug#9812: Problem with "tail -f" on GPFS filesystem // coreutils=20 package On 10/20/2011 03:52 PM, Martial-externe BORNET wrote: > Good afternoon, >=20 > Could you please add the following line to the src/fs.h file : >=20 > # define S_MAGIC_GPFS 0x47504653 That was actually done in the recently released 8.13 >=20 > and add the following line to the switch() of the fremote() function in=20 > the src/tail.c file, in the coreutils package : >=20 > case S_MAGIC_GPFS: >=20 > or do you prefer me to send you a patch for these files ? (I'm not used=20 to=20 > that yet, but I'll do it if you need it). >=20 > These addings fix a "tail -f" problem with the GPFS filesystem. >=20 > I'm waiting for your reply. > Thank you for your help regarding this fix. Since you took the time to identify the fix I'm applying this in your name. Please advise if you'd like a different email address. Note one can work around the issue without a patch for the moment by using the currently undocumented ---disable-inotify=20 option. cheers, P=E1draig. commit c0ca70013d7bbe60143910828e32146f3e94cc02 Author: Martial Bornet Date: Thu Oct 20 19:22:31 2011 +0100 tail: fix --follow on GPFS remote file systems * src/tail.c (fremote): Recognize GPFS as a remote file system outside the scope of inotify. diff --git a/src/tail.c b/src/tail.c index f315776..1641a12 100644 --- a/src/tail.c +++ b/src/tail.c @@ -904,6 +904,7 @@ fremote (int fd, const char *name) case S_MAGIC_FUSEBLK: case S_MAGIC_FUSECTL: case S_MAGIC_GFS: + case S_MAGIC_GPFS: case S_MAGIC_KAFS: case S_MAGIC_LUSTRE: case S_MAGIC_NCP: Ce message et toutes les pi=E8ces jointes (ci-apr=E8s le 'Message') sont = =E9tablis =E0 l'intention exclusive des destinataires et les informations q= ui y figurent sont strictement confidentielles. Toute utilisation de ce Mes= sage non conforme =E0 sa destination, toute diffusion ou toute publication = totale ou partielle, est interdite sauf autorisation expresse. Si vous n'=EAtes pas le destinataire de ce Message, il vous est interdit de= le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou pa= rtie. Si vous avez re=E7u ce Message par erreur, merci de le supprimer de v= otre syst=E8me, ainsi que toutes ses copies, et de n'en garder aucune trace= sur quelque support que ce soit. Nous vous remercions =E9galement d'en ave= rtir imm=E9diatement l'exp=E9diteur par retour du message. Il est impossible de garantir que les communications par messagerie =E9lect= ronique arrivent en temps utile, sont s=E9curis=E9es ou d=E9nu=E9es de tout= e erreur ou virus. ____________________________________________________ This message and any attachments (the 'Message') are intended solely for th= e addressees. The information contained in this Message is confidential. An= y use of information contained in this Message not in accord with its purpo= se, any dissemination or disclosure, either whole or partial, is prohibited= except formal approval. If you are not the addressee, you may not copy, forward, disclose or use an= y part of it. If you have received this message in error, please delete it = and all copies from your system and notify the sender immediately by return= message. E-mail communication cannot be guaranteed to be timely secure, error or vir= us-free. --=_alternative 00209A0CC1257930_= Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1"
Thank you for your quick answer.
I had discovered the ---disable-inot= ify option, but some users may have scripts they don't want to modify, so we'd prefer not to use it.
Thanks a lot anyway.

Best regards.

Martial Bornet




P@draigBrady.com =

20/10/2011 20:30

A
martial-externe.bornet@edf.fr
cc
9812-done@debbugs.gnu.org, meskes@de= bian.org, laurent.le-saout@edf.fr, antonio-externe.russo@edf.fr, marc_millot@fr.ibm.c= om, loic-externe.laureote@edf.fr, dominique.perruchon@edf.fr, remi.palancher@ed= f.fr, christian.sobrado@edf.fr, stephan.gorget@edf.fr, bruno-externe.agneray@edf.= fr
Objet
Re: bug#9812: Problem with "tail -f" on GPFS filesystem // coreutils package





On 10/20/2011 03:52 PM, Martial-externe BORNET wrote= :
> Good afternoon,
>
> Could you please add the following line to the src/fs.h file :
>
> # define S_MAGIC_GPFS 0x47504653

That was actually done in the recently released 8.13

>
> and add the following line to the switch() of the fremote() function in
> the src/tail.c file, in the coreutils package :
>
> case S_MAGIC_GPFS:
>
> or do you prefer me to send you a patch for these files ? (I'm not used to
> that yet, but I'll do it if you need it).
>
> These addings fix a "tail -f" problem with the GPFS filesyst= em.
>
> I'm waiting for your reply.
> Thank you for your help regarding this fix.

Since you took the time to identify the fix
I'm applying this in your name.
Please advise if you'd like a different email address.
Note one can work around the issue without a patch
for the moment by using the currently undocumented ---disable-inotify optio= n.

cheers,
P=E1draig.

commit c0ca70013d7bbe60143910828e32146f3e94cc02
Author: Martial Bornet <martial-externe.bornet@edf.fr>
Date:   Thu Oct 20 19:22:31 2011 +0100

   tail: fix --follow on GPFS remote file systems

   * src/tail.c (fremote): Recognize GPFS as a remote
   file system outside the scope of inotify.

diff --git a/src/tail.c b/src/tail.c
index f315776..1641a12 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -904,6 +904,7 @@ fremote (int fd, const char *name)
        case S_MAGIC_FUSEBLK:
        case S_MAGIC_FUSECTL:
        case S_MAGIC_GFS:
+        case S_MAGIC_GPFS:
        case S_MAGIC_KAFS:
        case S_MAGIC_LUSTRE:
        case S_MAGIC_NCP:




Ce message et toutes les pi=E8ces jointes (ci-apr=E8s le 'Message') sont = =E9tablis =E0 l'intention exclusive des destinataires et les informations q= ui y figurent sont strictement confidentielles. Toute utilisation de ce Mes= sage non conforme =E0 sa destination, toute diffusion ou toute publication = totale ou partielle, est interdite sauf autorisation expresse.

Si vous n'=EAtes pas le destinataire de ce Message, il vous est interdit de= le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou pa= rtie. Si vous avez re=E7u ce Message par erreur, merci de le supprimer de v= otre syst=E8me, ainsi que toutes ses copies, et de n'en garder aucune trace= sur quelque support que ce soit. Nous vous remercions =E9galement d'en ave= rtir imm=E9diatement l'exp=E9diteur par retour du message.

Il est impossible de garantir que les communications par messagerie =E9lect= ronique arrivent en temps utile, sont s=E9curis=E9es ou d=E9nu=E9es de tout= e erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for th= e addressees. The information contained in this Message is confidential. An= y use of information contained in this Message not in accord with its purpo= se, any dissemination or disclosure, either whole or partial, is prohibited= except formal approval.

If you are not the addressee, you may not copy, forward, disclose or use an= y part of it. If you have received this message in error, please delete it = and all copies from your system and notify the sender immediately by return= message.

E-mail communication cannot be guaranteed to be timely secure, error or vir= us-free.
--=_alternative 00209A0CC1257930_=-- From unknown Sat Sep 13 02:39:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 18 Nov 2011 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator