From unknown Sat Sep 13 02:39:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#9812: Problem with "tail -f" on GPFS filesystem // coreutils package Resent-From: Martial-externe BORNET Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 20 Oct 2011 16:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9812 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 9812@debbugs.gnu.org, meskes@debian.org 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-Debbugs-Original-To: bug-coreutils@gnu.org, meskes@debian.org Received: via spool by submit@debbugs.gnu.org id=B.131912761532722 (code B ref -1); Thu, 20 Oct 2011 16:21:02 +0000 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 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-Mailman-Approved-At: Thu, 20 Oct 2011 12:20:13 -0400 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 unknown Sat Sep 13 02:39:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Martial-externe BORNET Subject: bug#9812: closed (Re: bug#9812: Problem with "tail -f" on GPFS filesystem // coreutils package) Message-ID: References: <4EA06886.6090208@draigBrady.com> X-Gnu-PR-Message: they-closed 9812 X-Gnu-PR-Package: coreutils Reply-To: 9812@debbugs.gnu.org Date: Thu, 20 Oct 2011 18:38:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1319135882-12654-1" This is a multi-part message in MIME format... ------------=_1319135882-12654-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #9812: Problem with "tail -f" on GPFS filesystem // coreutils package which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 9812@debbugs.gnu.org. --=20 9812: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9812 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1319135882-12654-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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: ------------=_1319135882-12654-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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==-- ------------=_1319135882-12654-1--