<div dir="ltr">Hi,<div><br></div><div>We have a GPFS filesystem mounted on CentOS 7.4 as type gpfs, pretty straightforward run of the mill stuff. But are seeing this odd behavior. If I do this in a shell script, given a file called "a"</div><div><br></div><div>cat a a a a a a a a a a > /path/to/gpfs/mount/test</div><div>grep ATAG /path/to/gpfs/mount/test | wc -l</div><div>sleep 4</div><div>grep ATAG /path/to/gpfs/mount/test | wc -l<br></div><div><br></div><div>The first grep | wc -l returns 1, because grep outputs  "Binary file /path/to/gpfs/mount/test matches"</div><div><br></div><div>The second grep | wc -l returns the correct count of ATAG in the file.</div><div><br></div><div>Why does it take 4 seconds (3 isn't enough) for that file to be properly recognized as a text file and/or why is it seen as a binary file in the first place since a is a plain text file?</div><div><br></div><div>Note that I have the same filesystem mounted via NFS and over an NFS mount it works as expected.</div><div><br></div><div>Any illumination is appreciated,</div><div><br></div><div>jbh</div></div>