GNU bug report logs - #9812
Problem with "tail -f" on GPFS filesystem // coreutils package

Previous Next

Package: coreutils;

Reported by: Martial-externe BORNET <martial-externe.bornet <at> edf.fr>

Date: Thu, 20 Oct 2011 16:21:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


Message #10 received at 9812-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Martial-externe BORNET <martial-externe.bornet <at> edf.fr>
Cc: meskes <at> debian.org, Laurent LE-SAOUT <laurent.le-saout <at> edf.fr>,
	Antonio-externe RUSSO <antonio-externe.russo <at> edf.fr>,
	marc_millot <at> fr.ibm.com,
	Loic-externe LAUREOTE <loic-externe.laureote <at> edf.fr>,
	9812-done <at> debbugs.gnu.org, Remi PALANCHER <remi.palancher <at> edf.fr>,
	Christian SOBRADO <christian.sobrado <at> edf.fr>,
	Dominique PERRUCHON <dominique.perruchon <at> edf.fr>,
	Stephan GORGET <stephan.gorget <at> edf.fr>,
	Bruno-externe AGNERAY <bruno-externe.agneray <at> edf.fr>
Subject: Re: bug#9812: Problem with "tail -f" on GPFS filesystem // coreutils
	package
Date: Thu, 20 Oct 2011 19:29:26 +0100
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 filesystem.
> 
> 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 option.

cheers,
Pádraig.

commit c0ca70013d7bbe60143910828e32146f3e94cc02
Author: Martial Bornet <martial-externe.bornet <at> 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:




This bug report was last modified 13 years and 302 days ago.

Previous Next


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